We currently migrate to MediaWiki from our old installation, but not all content has been migrated yet. Take a look at the Wiki Team page for instructions how to help or browse through our new wiki at wiki.linux-vserver.org to find the information already migrated.

  1. !/bin/sh
  2. (c) Andreas John, licensed under GPL V2.
  3. first release, may need some more syntax checks.
  4. status: works for me :)
  5. works with newstyle config only

confdir=/etc/vservers

if [ -z $1 ]; then echo

echo "usage: vserver-autostart <guestname> [<level>]"

echo "If you want to use other levels than default,"

echo "you need to modify the init script first."

echo "To disable autostart, set the level to \"none\"."

exit 0

fi

if [ ! -e $confdir/$1 ]; then

echo "The guest $1 does probably not exist"

echo "or you are not using newstyle-config."

exit 1

fi

  1. Delete the mark if $2 is none
if [ "$2" == "none" ]; then

if [ -e $confdir/$1/apps/init/mark ]; then

rm $confdir/$1/apps/init/mark

exit 0;

else

echo "Cannot remove autostart mark, because this guest was not set to autostart." ;

fi

elif [ -z $2 ]; then

# set the start level

level="default";

else

level=$2;

fi

  1. set the start mark
echo $level > $confdir/$1/apps/init/mark