X-Git-Url: http://git.rot13.org/?p=gnt-info;a=blobdiff_plain;f=bin%2Finstall-systemd.sh;h=4eecab84dcb174799c89e70115f2552e82f5a8b2;hp=d79b9aef2ee7c680a0e8ba38eb07bfd98760693c;hb=758fbb88c90ebc3dd49d93d19a6506c757745ea5;hpb=feadc312d73bb452a68da59b64152be9086cfbea diff --git a/bin/install-systemd.sh b/bin/install-systemd.sh index d79b9ae..4eecab8 100755 --- 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 + 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