document bug and add workaround
[gnt-info] / bin / install-sysv.sh
1 #!/bin/sh -xe
2 sudo cp -v gnt-monitor /etc/ganeti/
3 sudo gnt-cluster copyfile /etc/ganeti/gnt-monitor
4
5 test -e /etc/default/gnt-monitor || cp -v default/gnt-monitor /etc/default/ && echo "# modify config here"
6 sudo gnt-cluster copyfile /etc/default/gnt-monitor
7
8 sudo cp init.d/gnt-monitor /etc/init.d/gnt-monitor
9 sudo gnt-cluster copyfile /etc/init.d/gnt-monitor
10
11 #sudo gnt-cluster command apt-get install psmisc
12 sudo gnt-cluster command killall -r gnt-monitor
13
14 sudo gnt-cluster command service gnt-monitor restart
15 sudo gnt-cluster command 'ps ax | grep gnt-monitor'