Merge pull request #2103 from coderholic/unstable

Update redis_init_script.tpl
This commit is contained in:
Salvatore Sanfilippo 2014-12-11 15:20:53 +01:00
commit 81772ce0e3

View File

@ -26,11 +26,12 @@ case "$1" in
fi
;;
status)
if [ ! -f $PIDFILE ]
PID=$(cat $PIDFILE)
if [ ! -x /proc/${PID} ]
then
echo 'Redis is not running'
else
echo "Redis is running ($(<$PIDFILE))"
echo "Redis is running ($PID)"
fi
;;
restart)