Files
initscripts/usr/lib/init/services/crond.service
T
2025-07-25 16:26:16 +07:00

34 lines
545 B
Desktop File
Executable File

#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
CROND_OPTS=""
start() {
notify "Starting crond"
/usr/bin/crond $CROND_OPTS
check $? "start crond"
return $?
}
stop() {
notify "Stopping crond"
kill $(cat /var/run/crond.pid)
check $? "stop crond"
rm /var/run/crond.pid &> /dev/null
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
return 1
esac
return $?