commit 11e5dca7fabf67e2bae0e19aafdd39edda76c8b5
parent 99c05e97ae73d343df4e7a0821dc965c3775f465
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date: Thu, 14 Nov 2019 16:03:11 +0100
added templates run scripts for several other busybox daemons
Diffstat:
5 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/etc/busybox/run/acpid.run b/etc/busybox/run/acpid.run
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /etc/runit/common
+
+printf "Preparation done, starting %s.\n" $SVNAME
+exec chpst -b acpid busybox -d -f
diff --git a/etc/busybox/run/crond.run b/etc/busybox/run/crond.run
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /etc/runit/common
+
+printf "Preparation done, starting %s.\n" $SVNAME
+exec chpst -b crond busybox -f -l 0 -L /dev/stderr -c ${CRON_DIR:-"/var/spool/cron/crontabs"}
diff --git a/etc/busybox/run/httpd.run b/etc/busybox/run/httpd.run
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /etc/runit/common
+
+printf "Preparation done, starting %s.\n" $SVNAME
+exec chpst -b httpd busybox -f -h ${HTTPD_HOME:-"."}
diff --git a/etc/busybox/run/telnetd.run b/etc/busybox/run/telnetd.run
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /etc/runit/common
+
+printf "Preparation done, starting %s.\n" $SVNAME
+exec chpst -b telnetd busybox -F
diff --git a/etc/busybox/run/watchdog.run b/etc/busybox/run/watchdog.run
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+. /etc/runit/common
+
+test -z "$WATCHDOG_DEV" && die "watchdog needs a device"
+printf "Preparation done, starting %s.\n" $SVNAME
+exec chpst -b watchdog busybox -F $WATCHDOG_DEV