Add the ability to pause and continue the service process.

This commit is contained in:
Jeffrey Townsend
2019-05-21 22:10:45 +00:00
parent 16916d4f5b
commit 0d874645da
2 changed files with 24 additions and 0 deletions

View File

@@ -57,6 +57,18 @@ case $1 in
status=$?
log_end_msg $status
;;
pause)
log_daemon_msg "Pausing ONLP SNMP Agent" "onlp-snmpd"
start-stop-daemon --stop $QUIET --oknodo --pidfile $PIDFILE --signal 19
status=$?
log_end_msg $status
;;
continue)
log_daemon_msg "Continuing ONLP SNMP Agent" "onlp-snmpd"
start-stop-daemon --stop $QUIET --oknodo --pidfile $PIDFILE --signal 18
status=$?
log_end_msg $status
;;
status)
status_of_proc $DAEMON "ONLP SNMP Agent"
;;

View File

@@ -57,6 +57,18 @@ case $1 in
status=$?
log_end_msg $status
;;
pause)
log_daemon_msg "Pausing ONLP Platform Agent" "onlpd"
start-stop-daemon --stop $QUIET --oknodo --pidfile $PIDFILE --signal 19
status=$?
log_end_msg $status
;;
continue)
log_daemon_msg "Continuing ONLP Platform Agent" "onlpd"
start-stop-daemon --stop $QUIET --oknodo --pidfile $PIDFILE --signal 18
status=$?
log_end_msg $status
;;
status)
status_of_proc $DAEMON "ONLP Platform Agent"
;;