Commit 47834a4f authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Adapt example init.d script to work on Fedora


Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent aa9f166a
#!/bin/sh
# ganeti daemons init script
# based on skeleton from Debian GNU/Linux
#
# chkconfig: 2345 99 01
# description: Ganeti Cluster Manager
### BEGIN INIT INFO
# Provides: ganeti
# Required-Start: $syslog $remote_fs
......@@ -20,7 +22,14 @@ SCRIPTNAME="@SYSCONFDIR@/init.d/ganeti"
test -f "$DAEMON_UTIL" || exit 0
. /lib/lsb/init-functions
if [ -r /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
elif [ -r /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions
else
echo "Unable to find init functions"
exit 1
fi
check_exitcode() {
RC=$1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment