chiark / gitweb /
* Use fd 8 for readconfig stdout parking rather than fd 10, to avoid
[autopkgtest.git] / xen / initscript
index 7b37270d53ae57bf17bb8aa709d195c513473b40..682e74b24d75403ca4b9569beba07962d0abc6eb 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,7 +77,7 @@ esac
 
 set --
 
-exec 10>&1
+exec 8>&1
 case "$VERBOSE" in
 no)    exec >/dev/null ;;
 esac
@@ -74,7 +85,7 @@ esac
 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"