reload config changes on xvm-devconfig postinst sipb-xen-base/8.3
authorGreg Price <price@mit.edu>
Tue, 22 Jul 2008 00:39:43 +0000 (20:39 -0400)
committerGreg Price <price@mit.edu>
Tue, 22 Jul 2008 00:39:43 +0000 (20:39 -0400)
svn path=/trunk/packages/sipb-xen-base/; revision=702

debian/changelog
files/usr/sbin/invirt-reload [new file with mode: 0755]

index 0902e80..f155e9c 100644 (file)
@@ -1,3 +1,9 @@
+sipb-xen-base (8.3) unstable; urgency=low
+
+  * add invirt-reload to regenerate and reload configs
+
+ -- Greg Price <price@mit.edu>  Mon, 21 Jul 2008 20:35:42 -0400
+
 sipb-xen-base (8.2) unstable; urgency=low
 
   * leave out debathena-system so we get only the packages we ask for
diff --git a/files/usr/sbin/invirt-reload b/files/usr/sbin/invirt-reload
new file mode 100755 (executable)
index 0000000..fdfa8b6
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+for script in $(run-parts --test /etc/init.d); do
+    if [ "${script#/etc/init.d/sipb-xen-}" != "$script" \
+        -o "${script#/etc/init.d/invirt-}" != "$script" ]; then
+       "$script" reload
+    fi
+done