aboutsummaryrefslogtreecommitdiffstats
path: root/community/runit/runit.initd
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-05 14:28:15 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-08 22:23:07 +0200
commitb20bcc50abdf385b2b55ff516458892801118623 (patch)
treed086e2c1a11deafd9b99cc7f1bdbc0c5763cbff7 /community/runit/runit.initd
parentee9edf5ad90396e4015f21fc897bcf32f3582d76 (diff)
downloadaports-b20bcc50abdf385b2b55ff516458892801118623.tar.gz
aports-b20bcc50abdf385b2b55ff516458892801118623.tar.bz2
aports-b20bcc50abdf385b2b55ff516458892801118623.tar.xz
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).
Diffstat (limited to 'community/runit/runit.initd')
-rw-r--r--community/runit/runit.initd7
1 files changed, 5 insertions, 2 deletions
diff --git a/community/runit/runit.initd b/community/runit/runit.initd
index 2f3a0968dc..257ae60512 100644
--- a/community/runit/runit.initd
+++ b/community/runit/runit.initd
@@ -8,7 +8,10 @@ description="starts and monitors a collection of runsv(8) processes"
retry="SIGHUP/5"
depend() {
- need localmount
- after firewall
+ need localmount
+ after firewall
+ if [ -x /sbin/socklog ]; then
+ provide logger
+ fi
}