Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix several bugs of init.d scripts #494

Merged
merged 1 commit into from

2 participants

@quiver
  • PIDFILE environ variable was not properly retrieved
  • chkconfig command failed
quiver fix several bugs of init.d scripts
- PIDFILE environ variable was not properly retrieved
- chkconfig command failed
c4286fe
@antirez antirez merged commit abf54ee into antirez:unstable
@antirez
Owner

Thank you, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. fix several bugs of init.d scripts

    quiver authored
    - PIDFILE environ variable was not properly retrieved
    - chkconfig command failed
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.