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

@@ -7,12 +7,11 @@ case $1 in
exit 0
;;
postinst)
[ -f "/run/cron.pid" ] && /etc/init.d/cron restart
[ -f "/etc/crontab" ] || cp /usr/share/cron/crontab /etc/crontab
/etc/init.d/cron status 2>&1 > /dev/null && /etc/init.d/cron restart
exit 0
;;
prerm)
[ -f "/run/cron.pid" ] && /etc/init.d/cron stop
/etc/init.d/cron status 2>&1 > /dev/null && /etc/init.d/cron stop
exit 0
;;
postrm)