sysv install
[gnt-info] / bin / install-sysv.sh
diff --git a/bin/install-sysv.sh b/bin/install-sysv.sh
new file mode 100755 (executable)
index 0000000..ef2f41a
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh -xe
+sudo cp gnt-monitor /etc/ganeti/
+sudo gnt-cluster copyfile /etc/default/gnt-monitor
+
+sudo cp init.d/gnt-monitor /etc/init.d/gnt-monitor
+sudo gnt-cluster copyfile /etc/init.d/gnt-monitor
+
+#sudo gnt-cluster command apt-get install psmisc
+sudo gnt-cluster command killall gnt-monitor
+
+sudo gnt-cluster command service gnt-monitor restart
+sudo gnt-cluster command service gnt-monitor status