projects
/
gnt-info
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd default file
[gnt-info]
/
bin
/
install-systemd.sh
diff --git
a/bin/install-systemd.sh
b/bin/install-systemd.sh
index
d79b9ae
..
4eecab8
100755
(executable)
--- a/
bin/install-systemd.sh
+++ b/
bin/install-systemd.sh
@@
-1,10
+1,15
@@
#!/bin/sh -xe
sudo cp gnt-monitor /etc/ganeti/
sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor
#!/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 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 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
sudo gnt-cluster command systemctl start gnt-monitor
sudo gnt-cluster command systemctl status gnt-monitor