Skip to content
Browse files

fix several bugs of init.d scripts

- PIDFILE environ variable was not properly retrieved
- chkconfig command failed
  • Loading branch information...
1 parent 96e9f8d commit c4286feabef25b417d05251e4a63ef769ac4cfad quiver committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 utils/install_server.sh
  2. +1 −1 utils/redis_init_script.tpl
View
2 utils/install_server.sh
@@ -166,7 +166,7 @@ if [[ ! `which chkconfig` ]] ; then
else
# we're chkconfig, so lets add to chkconfig and put in runlevel 345
chkconfig --add redis_$REDIS_PORT && echo "Successfully added to chkconfig!"
- chkconfig--level 345 redis_$REDIS_PORT on && echo "Successfully added to runlevels 345!"
+ chkconfig --level 345 redis_$REDIS_PORT on && echo "Successfully added to runlevels 345!"
fi
/etc/init.d/redis_$REDIS_PORT start || die "Failed starting service..."
View
2 utils/redis_init_script.tpl
@@ -1,7 +1,7 @@
case "$1" in
start)
- if [ -f $$PIDFILE ]
+ if [ -f $PIDFILE ]
then
echo "$PIDFILE exists, process is already running or crashed"
else

0 comments on commit c4286fe

Please sign in to comment.
Something went wrong with that request. Please try again.