|
|
@ -57,10 +57,10 @@ do_stop() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Function that sends a SIGHUP to the daemon/service |
|
|
|
# Function that sends a SIGHUP to the daemon/service |
|
|
|
#do_reload() { |
|
|
|
do_reload() { |
|
|
|
# start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME |
|
|
|
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME |
|
|
|
# return 0 |
|
|
|
return 0 |
|
|
|
#} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case "$1" in |
|
|
|
case "$1" in |
|
|
|
start) |
|
|
|
start) |
|
|
@ -82,14 +82,12 @@ case "$1" in |
|
|
|
status) |
|
|
|
status) |
|
|
|
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? |
|
|
|
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? |
|
|
|
;; |
|
|
|
;; |
|
|
|
#reload|force-reload) |
|
|
|
reload|force-reload) |
|
|
|
#log_daemon_msg "Reloading $DESC" "$NAME" |
|
|
|
log_daemon_msg "Reloading $DESC" "$NAME" |
|
|
|
#do_reload |
|
|
|
do_reload |
|
|
|
#log_end_msg $? |
|
|
|
log_end_msg $? |
|
|
|
#;; |
|
|
|
;; |
|
|
|
restart|force-reload) |
|
|
|
restart) |
|
|
|
# If the "reload" option is implemented then remove the |
|
|
|
|
|
|
|
# 'force-reload' alias |
|
|
|
|
|
|
|
log_daemon_msg "Restarting $DESC" "$NAME" |
|
|
|
log_daemon_msg "Restarting $DESC" "$NAME" |
|
|
|
do_stop |
|
|
|
do_stop |
|
|
|
case "$?" in |
|
|
|
case "$?" in |
|
|
|