Commit 81772ce0 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #2103 from coderholic/unstable

Update redis_init_script.tpl
parents f24a0bc1 dab5c09a
...@@ -26,11 +26,12 @@ case "$1" in ...@@ -26,11 +26,12 @@ case "$1" in
fi fi
;; ;;
status) status)
if [ ! -f $PIDFILE ] PID=$(cat $PIDFILE)
if [ ! -x /proc/${PID} ]
then then
echo 'Redis is not running' echo 'Redis is not running'
else else
echo "Redis is running ($(<$PIDFILE))" echo "Redis is running ($PID)"
fi fi
;; ;;
restart) restart)
......
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