reload systemd config, kill running gnt-monitors
[gnt-info] / bin / install-gnt-monitor.sh
1 #!/bin/sh -xe
2 sudo cp gnt-monitor /etc/ganeti/
3 sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor
4 sudo cp systemd/gnt-monitor.service /etc/systemd/system/
5 sudo gnt-cluster copyfile /etc/systemd/system/gnt-monitor.service
6 sudo gnt-cluster command systemctl daemon-reload
7 sudo gnt-cluster command systemctl enable gnt-monitor
8 sudo gnt-cluster command killall gnt-monitor
9 sudo gnt-cluster command systemctl start gnt-monitor
10 sudo gnt-cluster command systemctl status gnt-monitor