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

View File

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