working commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
*~
|
||||
istored
|
||||
istored.service
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# PROVIDE: mstored
|
||||
# REQUIRE: DAEMON
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="mstored"
|
||||
rcvar="mstored_enable"
|
||||
|
||||
pidfile="@srv_rundir@/mstored.pid"
|
||||
command="@prefix@/sbin/${name}"
|
||||
command_args="-daemon"
|
||||
procname="@prefix@/sbin/${name}"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${mstored_enable:="NO"}
|
||||
|
||||
run_rc_command "$1"
|
||||
#EOF
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=mstored
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/mstore/mstored.pid
|
||||
ExecStart=/usr/local/sbin/mstored -daemon=true
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=mstored
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=@srv_rundir@/mstored.pid
|
||||
ExecStart=@prefix@/sbin/mstored -daemon=true
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user