systemd default file
[gnt-info] / bin / install-systemd.sh
index d79b9ae..4eecab8 100755 (executable)
@@ -1,10 +1,15 @@
 #!/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
+
+test -e /etc/default/gnt-monitor || cp -v default/gnt-monitor /etc/default/ && echo "# modify config here"
+sudo gnt-cluster copyfile /etc/default/gnt-monitor
+
 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 killall gnt-monitor
 sudo gnt-cluster command systemctl start gnt-monitor
 sudo gnt-cluster command systemctl status gnt-monitor