systemd default file
[gnt-info] / bin / install-systemd.sh
1 #!/bin/sh -xe
2 sudo cp gnt-monitor /etc/ganeti/
3 sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor
4
5 sudo cp systemd/gnt-monitor.service /etc/systemd/system/
6 sudo gnt-cluster copyfile /etc/systemd/system/gnt-monitor.service
7
8 test -e /etc/default/gnt-monitor || cp -v default/gnt-monitor /etc/default/ && echo "# modify config here"
9 sudo gnt-cluster copyfile /etc/default/gnt-monitor
10
11 sudo gnt-cluster command systemctl daemon-reload
12 sudo gnt-cluster command systemctl enable gnt-monitor
13 #sudo gnt-cluster command killall gnt-monitor
14 sudo gnt-cluster command systemctl start gnt-monitor
15 sudo gnt-cluster command systemctl status gnt-monitor