aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-05-03 21:09:07 +0200
committerTom Gundersen <teg@jklm.no>2011-05-08 01:41:09 +0200
commitbf329c43dc671746e23c1760f9a674c58898aebb (patch)
treea242bbadd9dfc96285282ef75cff83a361321f23 /rc.sysinit
parentd8796827633d533e53ba7e158ee6354c38d0e88e (diff)
downloadinitscripts-bf329c43dc671746e23c1760f9a674c58898aebb.tar.xz
workaround: symlink /var/run/daemons -> /run/daemons
Some initscripts check the folder /var/run/daemons to see if another daemon is running. They should not do this as this folder is supposed to be internal to initscripts, and use ck_daemon instead. However, we add this workaround to minimize the pain. Should be removed one day. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index e07afe6..1f2623b 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -316,6 +316,7 @@ stat_busy "Removing Leftover Files"
/bin/mountpoint -q /tmp || /bin/rm -rf /tmp/* /tmp/.* &>/dev/null
[[ ! -L /var/lock ]] && /bin/rm -rf /var/lock/*
[[ ! -L /var/run && -d /var/run ]] && /usr/bin/find /var/run/ \! -type d -delete
+[[ ! -L /var/run && ! -L /var/run/daemons ]] && /bin/ln -sf /run/daemons /var/run/daemons
: >| /var/run/utmp
/bin/chmod 0664 /var/run/utmp
/bin/chown root:utmp /var/run/utmp