Files
cron/SNAP/usher
Jay Larson 3c259f0bf1 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
2018-09-30 17:25:32 -05:00

21 lines
292 B
Bash
Executable File

#!/bin/sh
set -e
case $1 in
preinst)
exit 0
;;
postinst)
/etc/init.d/cron status 2>&1 > /dev/null && /etc/init.d/cron restart
exit 0
;;
prerm)
/etc/init.d/cron status 2>&1 > /dev/null && /etc/init.d/cron stop
exit 0
;;
postrm)
exit 0
;;
esac