Skip to content

Commit

Permalink
Fix init script for auto-boot
Browse files Browse the repository at this point in the history
Made status command work in CentOS by adding home directory in environment when asking for status.
Jeremy successfully broke the boot process, which was fixed by changing a kz- to *-.
Changed priority of boot order.
  • Loading branch information
dschreiber authored and k-anderson committed Feb 6, 2014
1 parent c1548b4 commit 137b094
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/kz-generic.init
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# kazoo
#
# chkconfig: 345 13 87
# chkconfig: 345 85 87
# description: Dubbed a "scalable, distributed, cloud-based" telephony platform
# processname: kazoo
#
Expand All @@ -12,7 +12,7 @@

KZ_DIR="/opt/kazoo"
KZ_APP=`basename $0`
KZ_APP=${KZ_APP#kz-}
KZ_APP=${KZ_APP#*-}
LOCKFILE=${LOCKFILE-/var/lock/subsys/${KZ_APP}}
USER="kazoo"
RETVAL=0
Expand Down Expand Up @@ -66,6 +66,7 @@ case "$1" in
stop
;;
status)
export HOME=${KZ_DIR}
sup -n${KZ_APP} whistle_maintenance nodes
RETVAL=$?
;;
Expand Down

0 comments on commit 137b094

Please sign in to comment.