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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user