mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
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).
17 lines
315 B
Text
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
|
|
}
|
|
|