sipb-xen-remctl-auto -> invirt-remote-host
authorEvan Broder <broder@mit.edu>
Sat, 25 Oct 2008 02:09:06 +0000 (22:09 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 25 Oct 2008 02:09:06 +0000 (22:09 -0400)
svn path=/trunk/packages/invirt-remote-host/; revision=1239

14 files changed:
debian/changelog
debian/control
debian/control.in [deleted file]
debian/invirt-remote-host.init [moved from debian/sipb-xen-remctl-auto.init with 82% similarity]
debian/invirt-remote-host.install [moved from debian/sipb-xen-remctl-auto.install with 100% similarity]
debian/rules
files/etc/cron.d/sipb-xen-remctl-auto [deleted file]
files/etc/remctl/conf.d/invirt-remote-host [new file with mode: 0644]
files/etc/remctl/conf.d/sipb-xen-remote [deleted file]
files/usr/sbin/invirt-listvms [moved from files/usr/sbin/sipb-xen-listvms with 96% similarity]
files/usr/sbin/invirt-lvm [moved from files/usr/sbin/sipb-xen-lvm with 100% similarity]
files/usr/sbin/invirt-remote [moved from files/usr/sbin/sipb-xen-remote with 69% similarity]
files/usr/sbin/invirt-vmcontrol [moved from files/usr/sbin/sipb-xen-vmcontrol with 86% similarity]
files/usr/sbin/sipb-xen-boot [deleted file]

index ee9e76b..bc2aee4 100644 (file)
@@ -1,3 +1,9 @@
+invirt-remote-host (0.0.1) unstable; urgency=low
+
+  * sipb-xen-remctl-auto -> invirt-remote-host
+
+ -- Evan Broder <broder@mit.edu>  Fri, 24 Oct 2008 21:54:35 -0400
+
 sipb-xen-remctl-auto (1.5.2) unstable; urgency=low
 
   * sipb-xen-console-server -> invirt-console-host
index 4cfc17a..360f171 100644 (file)
@@ -1,12 +1,13 @@
-Source: sipb-xen-remctl-auto
+Source: invirt-remote-host
 Section: net
 Priority: extra
 Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
 Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0)
-Standards-Version: 3.7.2
+Standards-Version: 3.8.0
 
-Package: sipb-xen-remctl-auto
+Package: invirt-remote-host
 Architecture: all
 Depends: ${misc:Depends}, remctl-server, invirt-console-host, python-cjson, python-yaml
-Description: Installs the SIPB Xen automatic remctl management system
- This is our automatic remctl configuration management system.
+Description: Installs the Invirt host remctl configuration
+ This is the remctl configuration for an Invirt host. It allows any
+ commands to be run from the Invirt remote server
diff --git a/debian/control.in b/debian/control.in
deleted file mode 100644 (file)
index ac979f7..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Source: sipb-xen-remctl-auto
-Section: net
-Priority: extra
-Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
-Build-Depends: @cdbs@
-Standards-Version: 3.7.2
-
-Package: sipb-xen-remctl-auto
-Architecture: all
-Depends: ${misc:Depends}, remctl-server, invirt-console-host, python-cjson, python-yaml
-Description: Installs the SIPB Xen automatic remctl management system
- This is our automatic remctl configuration management system.
similarity index 82%
rename from debian/sipb-xen-remctl-auto.init
rename to debian/invirt-remote-host.init
index f56396d..a029ef4 100755 (executable)
@@ -1,15 +1,15 @@
 #!/bin/bash
 ### BEGIN INIT INFO
-# Provides:          sipb-xen-remctl-auto
+# Provides:          invirt-remote-host
 # Required-Start:    $local_fs $remote_fs
 # Required-Stop:     $local_fs $remote_fs
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
-# Short-Description: conserver config from invirt config for invirt host
+# Short-Description: remctl configuration for an Invirt host
 # Description:
 ### END INIT INFO 
 
-PACKAGE=sipb-xen-remctl-auto
+PACKAGE=invirt-remote-host
 
 . /lib/lsb/init-functions
 
index 6bf6850..e6192f6 100755 (executable)
@@ -1,4 +1,3 @@
 #!/usr/bin/make -f
 
-DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
 include /usr/share/cdbs/1/rules/debhelper.mk
diff --git a/files/etc/cron.d/sipb-xen-remctl-auto b/files/etc/cron.d/sipb-xen-remctl-auto
deleted file mode 100644 (file)
index 78cc8a4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# /etc/cron.d/sipb-xen-remctl-auto: crontab entries for the sipb-xen-remctl-auto package
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-MAILTO=root
-UPDATE=/usr/sbin/remctl-update.sh
-
-@reboot         root    if [ -x "$UPDATE" ]; then nice -n10 "$UPDATE" all; fi
-* * * * */15       root    if [ -x "$UPDATE" ]; then nice -n10 "$UPDATE" all; fi
-
-# EOF
diff --git a/files/etc/remctl/conf.d/invirt-remote-host b/files/etc/remctl/conf.d/invirt-remote-host
new file mode 100644 (file)
index 0000000..b62acac
--- /dev/null
@@ -0,0 +1,2 @@
+remote web     /usr/sbin/invirt-remote /etc/remctl/acl/remote
+remote control /usr/sbin/invirt-remote /etc/remctl/acl/remote
diff --git a/files/etc/remctl/conf.d/sipb-xen-remote b/files/etc/remctl/conf.d/sipb-xen-remote
deleted file mode 100644 (file)
index 99e8fdf..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-remote web     /usr/sbin/sipb-xen-remote /etc/remctl/acl/remote
-remote control /usr/sbin/sipb-xen-remote /etc/remctl/acl/remote
similarity index 96%
rename from files/usr/sbin/sipb-xen-listvms
rename to files/usr/sbin/invirt-listvms
index 79762fa..890931a 100755 (executable)
@@ -2,7 +2,6 @@
 
 import sys
 import time
-sys.path.insert(0, '/usr/lib/xen-3.1-1/lib/python')
 from xen.lowlevel import xs
 
 xsc = xs.xs()
similarity index 69%
rename from files/usr/sbin/sipb-xen-remote
rename to files/usr/sbin/invirt-remote
index a6d1c02..b768f94 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# sipb-xen-remote TYPE SERVICE [ARGS...]
+# invirt-remote TYPE SERVICE [ARGS...]
 #
 # We carry out the remctl command proxied to us by the remote-control server.
 
@@ -10,18 +10,18 @@ shift; shift;
 case "$TYPE" in
     control)
         # $SERVICE is hostname
-        COMMAND=/usr/sbin/sipb-xen-vmcontrol
+        COMMAND=/usr/sbin/invirt-vmcontrol
        ;;
     web)
         case "$SERVICE" in
             lvcreate|lvremove|lvrename|lvresize)
-                COMMAND=/usr/sbin/sipb-xen-lvm
+                COMMAND=/usr/sbin/invirt-lvm
                ;;
             vmboot)
-                COMMAND=/usr/sbin/sipb-xen-vmcontrol
+                COMMAND=/usr/sbin/invirt-vmcontrol
                ;;
             listvms)
-                COMMAND=/usr/sbin/sipb-xen-listvms
+                COMMAND=/usr/sbin/invirt-listvms
                ;;
            info)
                COMMAND=/usr/sbin/xm
@@ -38,5 +38,4 @@ case "$TYPE" in
         ;;
 esac
 
-#echo $COMMAND "$SERVICE" "$@"
 $COMMAND "$SERVICE" "$@"
similarity index 86%
rename from files/usr/sbin/sipb-xen-vmcontrol
rename to files/usr/sbin/invirt-vmcontrol
index 0c20109..b5c1d9c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# sipb-xen-vmcontrol MACHINE ACTION
+# invirt-vmcontrol MACHINE ACTION
 #
 # remctl should have already verified that the user is authorized to
 # control the machine.  So, we just need to execute the action requested.
@@ -19,7 +19,7 @@ case "$ACTION" in
        ;;
     destroy|shutdown)
        xm "$ACTION" "$MACHINE"
-       /usr/sbin/sipb-xen-update-conserver </dev/null >/dev/null 2>&1 &
+       /usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 &
        ;;
     install|create|reboot)
        shift; shift;
@@ -35,7 +35,7 @@ case "$ACTION" in
        else
            xm create sipb-database machine_name="$ORIGMACHINE"
        fi
-       (sleep 4; /usr/sbin/sipb-xen-update-conserver) </dev/null >/dev/null 2>&1 &
+       (sleep 4; /usr/sbin/invirt-update-conserver) </dev/null >/dev/null 2>&1 &
        ;;
     list-long)
        xm list --long "$MACHINE"
diff --git a/files/usr/sbin/sipb-xen-boot b/files/usr/sbin/sipb-xen-boot
deleted file mode 100755 (executable)
index 7a9cb81..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-machine="$2"
-cdrom="$3"
-
-if [ -n "$cdrom" ]; then
-        xm create sipb-database machine_name="$machine" cdrom_image="$cdrom"
-else
-        xm create sipb-database machine_name="$machine"
-fi