Browse Source

- move crond init script away from skel-root

master
vanhofen 6 years ago
parent
commit
e7d14cdc6c
  1. 0
      archive-imagefiles/scripts/crond.init
  2. 3
      make/system-scripts.mk
  3. 20
      skel-root/coolstream/hd1/etc/init.d/crond
  4. 20
      skel-root/coolstream/hd2/etc/init.d/crond

0
skel-root/armbox/hd51/etc/init.d/crond → archive-imagefiles/scripts/crond.init

3
make/system-scripts.mk

@ -15,6 +15,9 @@ init-helpers: $(ETCINITD)
init-hostname: $(ETCINITD)
install -m 0755 $(IMAGEFILES)/scripts/hostname.init $(ETCINITD)/hostname
init-crond: $(ETCINITD)
install -m 0755 $(IMAGEFILES)/scripts/crond.init $(ETCINITD)/crond
init-camd: $(ETCINITD)
install -m 0755 $(IMAGEFILES)/scripts/camd.init $(ETCINITD)/camd
install -m 0755 $(IMAGEFILES)/scripts/camd_datefix.init $(ETCINITD)/camd_datefix

20
skel-root/coolstream/hd1/etc/init.d/crond

@ -1,20 +0,0 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
start)
if [ -e /var/etc/.crond ]; then
crond
fi
;;
stop)
if [ -e /var/etc/.crond ]; then
trap "" INT
kill -INT $(pidof crond)
fi
;;
*)
echo "[$BASENAME] Usage: $0 {start|stop}"
;;
esac

20
skel-root/coolstream/hd2/etc/init.d/crond

@ -1,20 +0,0 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
start)
if [ -e /var/etc/.crond ]; then
crond
fi
;;
stop)
if [ -e /var/etc/.crond ]; then
trap "" INT
kill -INT $(pidof crond)
fi
;;
*)
echo "[$BASENAME] Usage: $0 {start|stop}"
;;
esac
Loading…
Cancel
Save