]> git.saurik.com Git - redis.git/commitdiff
fix several bugs of init.d scripts
authorquiver <george@alpamayo.(none)>
Fri, 4 May 2012 11:07:00 +0000 (20:07 +0900)
committerantirez <antirez@gmail.com>
Fri, 4 May 2012 11:42:03 +0000 (13:42 +0200)
- PIDFILE environ variable was not properly retrieved
- chkconfig command failed

utils/redis_init_script.tpl

index e0c5b2f88fe7fcc44a3d0c8cf62e377a78bff871..e2af1fe77571c191dab027e45f9ffecefe76432d 100755 (executable)
@@ -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