X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2Finstall-systemd.sh;fp=bin%2Finstall-systemd.sh;h=d79b9aef2ee7c680a0e8ba38eb07bfd98760693c;hb=feadc312d73bb452a68da59b64152be9086cfbea;hp=0000000000000000000000000000000000000000;hpb=3eafa557c854cb9e2736b0d72e10f9ccc21657f9;p=gnt-info diff --git a/bin/install-systemd.sh b/bin/install-systemd.sh new file mode 100755 index 0000000..d79b9ae --- /dev/null +++ b/bin/install-systemd.sh @@ -0,0 +1,10 @@ +#!/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 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 systemctl start gnt-monitor +sudo gnt-cluster command systemctl status gnt-monitor