diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-09-28 18:33:26 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-09-28 18:33:26 +0200 |
commit | 0d52009f7ea77e739fca105988c01337dfeb04d5 (patch) | |
tree | d0bb7a08c2adb941c03e0e976f43912a5a8cdfc3 /vservers-default | |
download | util-vserver-netns-0d52009f7ea77e739fca105988c01337dfeb04d5.tar.gz util-vserver-netns-0d52009f7ea77e739fca105988c01337dfeb04d5.tar.bz2 util-vserver-netns-0d52009f7ea77e739fca105988c01337dfeb04d5.zip |
initial commit
Diffstat (limited to 'vservers-default')
-rw-r--r-- | vservers-default | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vservers-default b/vservers-default new file mode 100644 index 0000000..314bfa0 --- /dev/null +++ b/vservers-default @@ -0,0 +1,33 @@ +# This file gets sourced from /etc/init.d/vservers-default. + +# We want to use our modified version of util-vserver-vars, +# so that we can fire up our modified version of the vserver +# script and do the network namespace setup stuff even for +# vservers that get started up during boot. +if [ -r "/usr/lib/util-vserver/util-vserver-vars.netns" ]; then + UTIL_VSERVER_VARS="/usr/lib/util-vserver/util-vserver-vars.netns" + export UTIL_VSERVER_VARS +fi + +# We also add the possibilities to set other variables without +# modifying this file. So we and some clever sourcing here. +# (This has also the possibility to start other marks without +# copying the script, but symlinking it.) +name="$(basename "$0")" + +# This is a requirement, stated in the init script. So we set it +# here, to not confuse the user. +LOCKFILE="$name" + +function _get_flavor() { + local flavor="" + if [ "$name" = "${name#vserver-default[-.]}" ]; then + + else + fi +} + +# Added the ability to disable a flaver without disabling the +# initscript. (Debian enables all initscripts during installation +# of a package, so that we may want another way to disable it.) +[ "$ENABLE" != "0" ] || exit 0 |