reload systemd config, kill running gnt-monitors
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 8 Dec 2016 09:09:08 +0000 (10:09 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 8 Dec 2016 09:09:08 +0000 (10:09 +0100)
bin/install-gnt-monitor.sh

index 8bd8fc6..d79b9ae 100755 (executable)
@@ -3,6 +3,8 @@ 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 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 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
 sudo gnt-cluster command systemctl start gnt-monitor
 sudo gnt-cluster command systemctl status gnt-monitor