1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/runit/runit.initd
Stuart Cardall b20bcc50ab community/runit: improve abuild and runscript, add "provide logger"
If socklog is installed, then runit starts it and so provides a logger
service. We need "provides logger" here to prevent OpenRC from
starting Busybox's syslog when socklog is used (crond needs logger).
2016-09-08 22:23:07 +02:00

17 lines
315 B
Text

#!/sbin/openrc-run
command="/sbin/runsvdir"
command_args="/etc/service"
pidfile="/run/${SVCNAME}.pid"
command_background="true"
description="starts and monitors a collection of runsv(8) processes"
retry="SIGHUP/5"
depend() {
need localmount
after firewall
if [ -x /sbin/socklog ]; then
provide logger
fi
}