version bump for ganeti-2.4.3

This commit is contained in:
2011-08-13 12:15:39 +00:00
parent ed80336eca
commit f9e9f966c4
8 changed files with 375 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/files/ganeti.initd,v 1.3 2011/03/29 22:12:25 ramereth Exp $
depend() {
need localmount xend drbd
before ganeti-kvm-poweroff
after bootmisc nfsmount
}
checkconfig() {
for fname in /var/lib/ganeti/ssconf_node_pass /var/lib/ganeti/server.pem
do
if [[ ! -f "$fname" ]]
then
eerror "Config file $fname not found, will not run."
return 1
fi
done
return 0
}
start() {
checkconfig || return 1
ebegin "Starting ganeti-master"
/usr/sbin/ganeti-master start
ret=$?
eend ${ret}
[[ "${ret}" != 0 ]] && return 1
ebegin "Starting ganeti-noded"
start-stop-daemon --start --quiet --exec /usr/sbin/ganeti-noded
ret=$?
eend ${ret}
[[ "${ret}" != 0 ]] && return 1
return 0
}
stop() {
ebegin "Stopping ganeti-noded"
start-stop-daemon --stop --quiet --name ganeti-noded
ret=$?
eend ${ret}
[[ "${ret}" != 0 ]] && return 1
ebegin "Stopping ganeti-master"
/usr/sbin/ganeti-master start
ret=$?
eend ${ret}
[[ "${ret}" != 0 ]] && return 1
return 0
}