sysv init now really works
[gnt-info] / bin / install-sysv.sh
index ef2f41a..20401e0 100755 (executable)
@@ -1,12 +1,15 @@
 #!/bin/sh -xe
-sudo cp gnt-monitor /etc/ganeti/
+sudo cp -v gnt-monitor /etc/ganeti/
+sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor
+
+test -e /etc/default/gnt-monitor || cp -v default/gnt-monitor /etc/default/ && echo "# modify config here"
 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 killall -r gnt-monitor
 
 sudo gnt-cluster command service gnt-monitor restart
-sudo gnt-cluster command service gnt-monitor status
+sudo gnt-cluster command 'ps ax | grep gnt-monitor'