diff options
author | Juan RP <xtraeme@gmail.com> | 2015-02-02 12:25:02 +0100 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2015-02-02 12:25:02 +0100 |
commit | 6f79591812e4a8392913ee92a588139d94c58213 (patch) | |
tree | f36f90912dbd85c37203b01b17b7c20b07b5774e | |
parent | af3e795adeedd9218b49ae7b2e8b355b311ed80c (diff) | |
parent | aaf1f5b61882a2bdca168b0e2527f1b917cf33a9 (diff) | |
download | runit-void-6f79591812e4a8392913ee92a588139d94c58213.tar.gz runit-void-6f79591812e4a8392913ee92a588139d94c58213.tar.xz runit-void-6f79591812e4a8392913ee92a588139d94c58213.zip |
Merge pull request #16 from bougyman/feature/honor-runsvchdir
Use runsvchdir to set the initial run level
-rwxr-xr-x | 2 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/2 b/2 index 8897503..0020949 100755 --- a/2 +++ b/2 @@ -16,11 +16,9 @@ done [ -x /etc/rc.local ] && /etc/rc.local -# Create runlevel and then make it the default. -if [ -d /etc/runit/runsvdir/${runlevel} ]; then - mkdir -p /run/runit/runsvdir - ln -s /etc/runit/runsvdir/${runlevel} /run/runit/runsvdir/current -fi +runsvchdir "${runlevel}" +mkdir -p /run/runit/runsvdir +ln -s /etc/runit/runsvdir/current /run/runit/runsvdir/current exec env - PATH=$PATH \ runsvdir -P /run/runit/runsvdir/current 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' |