The following changes were made:

* Moved crontab from usher into CONFIG
  * Modified init script to use status_of_proc from init-functions
  * Modified usher to use init script status to check if daemon running
This commit is contained in:
2018-09-30 17:25:32 -05:00
parent b7130cccc5
commit 3c259f0bf1
4 changed files with 5 additions and 13 deletions

View File

@@ -36,13 +36,7 @@ case "$1" in
$0 start
;;
status)
pid=$(pidofproc -p "$PIDFILE" "$DAEMON")
if [ "$?" -ne 0 ]; then
echo "cron not running"
else
echo "cron running with PID: $pid"
fi
status_of_proc -p "$PIDFILE" "$DAEMON" || exit 1
;;
*)
echo "Usage: $0 [start|stop|restart|status]"