X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2Finstall-sysv.sh;fp=bin%2Finstall-sysv.sh;h=20401e0f8d1cb644cf75bbdda4001051a310e340;hb=3eafa557c854cb9e2736b0d72e10f9ccc21657f9;hp=ef2f41a53a6a102e61ef0982ddbd9a2ca9b350b3;hpb=e9018cdd7301c77a56af8d99a18bf4dbcf0f3c4e;p=gnt-info diff --git a/bin/install-sysv.sh b/bin/install-sysv.sh index ef2f41a..20401e0 100755 --- a/bin/install-sysv.sh +++ b/bin/install-sysv.sh @@ -1,12 +1,15 @@ #!/bin/sh -xe -sudo cp gnt-monitor /etc/ganeti/ +sudo cp -v gnt-monitor /etc/ganeti/ +sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor + +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 cp init.d/gnt-monitor /etc/init.d/gnt-monitor sudo gnt-cluster copyfile /etc/init.d/gnt-monitor #sudo gnt-cluster command apt-get install psmisc -sudo gnt-cluster command killall gnt-monitor +#sudo gnt-cluster command killall -r gnt-monitor sudo gnt-cluster command service gnt-monitor restart -sudo gnt-cluster command service gnt-monitor status +sudo gnt-cluster command 'ps ax | grep gnt-monitor'