Fix invirt-xen-config's init script 0.0.3
authorEvan Broder <broder@mit.edu>
Sat, 25 Oct 2008 23:03:22 +0000 (19:03 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 25 Oct 2008 23:03:22 +0000 (19:03 -0400)
svn path=/trunk/packages/invirt-xen-config/; revision=1275

debian/changelog
debian/invirt-xen-config.init

index 728a118..c4cbc81 100644 (file)
@@ -1,3 +1,9 @@
+invirt-xen-config (0.0.3) unstable; urgency=low
+
+  * Some small fixes in the init script
+
+ -- Evan Broder <broder@mit.edu>  Sat, 25 Oct 2008 19:03:12 -0400
+
 invirt-xen-config (0.0.2) unstable; urgency=low
 
   * Whoops - add the dependencies for the old sipb-xen-database-client
index e45b253..3752b61 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ### BEGIN INIT INFO
 # Provides:          invirt-xen-config
 # Required-Start:    $local_fs $remote_fs
 ### END INIT INFO
 
 PACKAGE=invirt-xen-config
+NAME="$PACKAGE"
+DESC="Startup script for the Invirt Xen host"
 PARENTPACKAGE=xend
-GEN_FILES=/etc/xen/xend-config.sxp
+GEN_FILES=/etc/xen/xend-config.sxp.invirt
 
 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
 
 . /lib/init/gen-files.sh
 . /lib/init/std-init.sh
 
-do_start() {
+do_startup() {
     gen_files
     
     echo 1 >/proc/sys/net/ipv4/ip_forward
@@ -30,8 +32,12 @@ do_start() {
     invoke-rc.d "$PARENTPACKAGE" "$1"
 }
 
+do_start() {
+    do_startup "start"
+}
+
 do_reload() {
-    do_start
+    do_startup "reload"
 }
 
 do_stop() {