rename systemd install script
[gnt-info] / bin / install-systemd.sh
diff --git a/bin/install-systemd.sh b/bin/install-systemd.sh
new file mode 100755 (executable)
index 0000000..d79b9ae
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -xe
+sudo cp gnt-monitor /etc/ganeti/
+sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor
+sudo cp systemd/gnt-monitor.service /etc/systemd/system/
+sudo gnt-cluster copyfile /etc/systemd/system/gnt-monitor.service
+sudo gnt-cluster command systemctl daemon-reload
+sudo gnt-cluster command systemctl enable gnt-monitor
+sudo gnt-cluster command killall gnt-monitor
+sudo gnt-cluster command systemctl start gnt-monitor
+sudo gnt-cluster command systemctl status gnt-monitor