summary refs log tree commit diff
path: root/2
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-07 09:59:12 +0200
committerJuan RP <xtraeme@gmail.com>2014-05-07 09:59:12 +0200
commit93c6db2a1d5071f150b693953078b9a05bdec82f (patch)
tree5e32f6c92f5a55344d08a70de4c1a5166e7c3c6f /2
parent1bbc546fac24c3fd52eaf1e3a19748702dcba299 (diff)
downloadrunit-void-93c6db2a1d5071f150b693953078b9a05bdec82f.tar.gz
runit-void-93c6db2a1d5071f150b693953078b9a05bdec82f.tar.xz
runit-void-93c6db2a1d5071f150b693953078b9a05bdec82f.zip
2: use a symlink in /run/runit/runsvdir to the current runlevel instead.
This makes 'ln -s /etc/sv/foo /var/service' work as it did before.
Diffstat (limited to '2')
-rwxr-xr-x25
1 files changed, 2 insertions, 3 deletions
diff --git a/2 b/2
index c793759..eb3e71e 100755
--- a/2
+++ b/2
@@ -13,11 +13,10 @@ done
 # Setup first tty as unicode again, stage1 does not work correctly for tty1.
 unicode_start
 
-# Create runlevel and then copy services.
+# Create runlevel and then make it the default.
 if [ -d /etc/runit/runsvdir/${runlevel} ]; then
     mkdir -p /run/runit/runsvdir
-    cp -aP /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir
-    ln -s /run/runit/runsvdir/${runlevel} /run/runit/runsvdir/current
+    ln -s /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir/current
 fi
 
 exec env - PATH=$PATH \