install gnt-monitor using systemd
[gnt-info] / bin / install-gnt-monitor.sh
diff --git a/bin/install-gnt-monitor.sh b/bin/install-gnt-monitor.sh
new file mode 100755 (executable)
index 0000000..8bd8fc6
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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 enable gnt-monitor
+sudo gnt-cluster command systemctl start gnt-monitor
+sudo gnt-cluster command systemctl status gnt-monitor