Merge pull request 'update orders and added crond.service' (#3) from crond into main
Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/initscripts/pulls/3
This commit was merged in pull request #3.
This commit is contained in:
@@ -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 $?
|
||||
+13
-12
@@ -4,15 +4,16 @@
|
||||
04swap
|
||||
05networking
|
||||
06sysctl
|
||||
07dnsmasq
|
||||
08dnsd
|
||||
09telnetd
|
||||
10sshd
|
||||
11iptables
|
||||
12ftpd
|
||||
13hostapd
|
||||
14httpd
|
||||
15nginx
|
||||
16openrouterinit
|
||||
17dropbear
|
||||
18gitea
|
||||
07crond
|
||||
08dnsmasq
|
||||
09dnsd
|
||||
10telnetd
|
||||
11sshd
|
||||
12iptables
|
||||
13ftpd
|
||||
14hostapd
|
||||
15httpd
|
||||
16nginx
|
||||
17openrouterinit
|
||||
18dropbear
|
||||
19gitea
|
||||
|
||||
Reference in New Issue
Block a user