chiark / gitweb /
merge to 1.0.0
[autopkgtest.git] / xen / initscript
index 7b37270d53ae57bf17bb8aa709d195c513473b40..373d265ea7eff1d33efa4c8194e064efd180d4f0 100755 (executable)
@@ -2,6 +2,17 @@
 set -e
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
+### BEGIN INIT INFO
+# Provides: adtxenlvm
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Should-Start: $remote_fs
+# Should-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Prepare firewall tables for autopkgtest Xen guests
+### END INIT INFO
+
 lsbif=/lib/lsb/init-functions
 if test -e $lsbif; then
   . $lsbif
@@ -66,15 +77,16 @@ esac
 
 set --
 
-exec 10>&1
+exec 8>&1
 case "$VERBOSE" in
 no)    exec >/dev/null ;;
 esac
 
+adt_readconfig_initscript=y
 printf "adtxenlvm: reading configuration for firewall setup:\n"
 . ${ADT_XENLVM_SHARE:=/usr/share/autopkgtest/xenlvm}/readconfig
 
-exec >&10 10>&-
+exec >&8 8>&-
 
 log_daemon_msg "adtxenlvm: installing firewall rules"