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