scripts were movde to /usr/sbin.

force-reload and reload was added to the micasad script.
/usr/sbin/rcmicasad was linked to /etc/init.d/micasad.
This commit is contained in:
Cameron (Kamran) Mashayekhi
2006-02-22 23:59:15 +00:00
parent b740459dd1
commit d22cde6eb9
4 changed files with 62 additions and 33 deletions

View File

@@ -11,7 +11,7 @@
# Short-Description: miCASA daemon
# Description: miCASA daemon
### END INIT INFO
MICASAD_BIN=/usr/bin/micasad.sh
MICASAD_BIN=/usr/sbin/micasad.sh
test -x $MICASAD_BIN || exit 5
. /etc/rc.status
@@ -62,6 +62,26 @@ case "$1" in
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
reload)
## Stop the service and regardless of whether it was
## running or not, start it again.
echo "Restarting miCASA daemon"
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
force-reload)
## Stop the service and regardless of whether it was
## running or not, start it again.
echo "Restarting miCASA daemon"
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
@@ -88,7 +108,7 @@ case "$1" in
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|restart|try-restart|status}"
echo "Usage: $0 {start|stop|restart|try-restart|reload|force-reload|status}"
exit 1
;;
esac