clean up rc files

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2015-12-18 10:46:34 +00:00
parent b621868d15
commit 2a0f80b497
2 changed files with 19 additions and 17 deletions

View File

@ -13,12 +13,13 @@ start()
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudc.pid
# start-stop-daemon --start --quiet \
# --exec /sbin/9pudc \
# --pidfile "${PIDFILE}" \
# -- -path /Socket -sock /var/run/docker.sock
# eend $? "Failed to start 9pudc"
/sbin/9pudc -path /Socket -sock /var/run/docker.sock -detach &
start-stop-daemon --start --quiet \
--background \
--exec /sbin/9pudc \
--make-pidfile --pidfile ${PIDFILE} \
-- -path /Socket -sock /var/run/docker.sock
eend $? "Failed to start 9pudc"
}
stop()
@ -27,7 +28,7 @@ stop()
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudc.pid
start-stop-daemon --stop --quiet \
--pidfile "${PIDFILE}"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
eend $? "Failed to stop 9pudc"
}

View File

@ -14,14 +14,15 @@ start()
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/mdnstool.pid
HOSTNAME=$(hostname -s).local.
export HOSTNAME=$(hostname -s).local.
# start-stop-daemon --start --quiet \
# --exec /sbin/mdnstool \
# --pidfile "${PIDFILE}" \
# -- if eth0 -hostname ${HOSTNAME}
# eend $? "Failed to start mDNS server"
/sbin/mdnstool if eth0 -hostname ${HOSTNAME} -detach &
start-stop-daemon --start --quiet \
--background \
--exec /sbin/mdnstool \
--make-pidfile --pidfile ${PIDFILE} \
-- if eth0 -hostname ${HOSTNAME}
eend $? "Failed to start mDNS server"
}
stop()
@ -30,7 +31,7 @@ stop()
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/mdnstool.pid
start-stop-daemon --stop --quiet \
--pidfile "${PIDFILE}"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
eend $? "Failed to stop mDNS server"
}