From 39d2677f030da6f380ae08626b79e05cab6f57ab Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Fri, 25 Jul 2025 16:15:14 +0700 Subject: [PATCH] update orders and added crond.service --- usr/lib/init/services/crond.service | 33 +++++++++++++++++++++++++++++ usr/share/rc/orders | 25 +++++++++++----------- 2 files changed, 46 insertions(+), 12 deletions(-) create mode 100644 usr/lib/init/services/crond.service diff --git a/usr/lib/init/services/crond.service b/usr/lib/init/services/crond.service new file mode 100644 index 0000000..353c737 --- /dev/null +++ b/usr/lib/init/services/crond.service @@ -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 $? diff --git a/usr/share/rc/orders b/usr/share/rc/orders index 120295e..1abaeeb 100644 --- a/usr/share/rc/orders +++ b/usr/share/rc/orders @@ -4,15 +4,16 @@ 04swap 05networking 06sysctl -07dnsmasq -08dnsd -09telnetd -10sshd -11iptables -12ftpd -13hostapd -14httpd -15nginx -16openrouterinit -17dropbear -18gitea \ No newline at end of file +07crond +08dnsmasq +09dnsd +10telnetd +11sshd +12iptables +13ftpd +14hostapd +15httpd +16nginx +17openrouterinit +18dropbear +19gitea