update orders and added crond.service
This commit is contained in:
1 parent
6a9603fc80
commit
39d2677f03
2 files changed
+46
-12
No files matched your search
@@ -0,0 +1,33 @@
|
||||
#!/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 $?
|
||||
Reference in new issue
Block a user