Browse Source

* changed sheba to extend vserver installation in order to get a fully operative vserver installation out of the box

legacy/0.1-legacy
Alejandro Mery 19 years ago
parent
commit
fab141d1fa
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      pkg_vserver.conf

+ 25
- 0
pkg_vserver.conf

@ -0,0 +1,25 @@
#!/bin/sh
sheba_activate_vserver() {
local runitdir=$root/etc/runit/
local initddir=/etc/rc.d/init.d/
cat <<EOT > $root/$initddir/vserver
#!/bin/sh
case "\$1" in
start) mkdir -p /var/run/vservers{,.rev}
mkdir -p /var/run/vshelper
sysctl kernel.vshelper=$libdir/util-vserver/vshelper
;;
esac
EOT
chmod +x $root/$initddir/vserver
ln -snfv $initddir/vserver $runitdir/1.d/20vserver
ln -snfv $initddir/vprocunhide $runitdir/1.d/26vprocunhide
ln -snfv $initddir/vprocunhide $runitdir/3.d/74vprocunhide
}
. $confdir/$pkg.conf
hook_add postmake 5 'sheba_activate_vserver'

Loading…
Cancel
Save