Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Option to check status of redis server
Browse files Browse the repository at this point in the history
  • Loading branch information
User to perform a deploy applications committed Jan 16, 2019
1 parent 2b7fc06 commit 07bf2b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/default/redis.init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ case "$1" in
echo "Redis stopped"
fi
;;
status)
if [ -f $PIDFILE ]
then
echo "process is running"
PID=$(cat $PIDFILE)
echo "pid is $PID"
else
echo "Redis server is not running ..."
fi
;;
*)
echo "Please use start or stop as first argument"
;;
Expand Down

0 comments on commit 07bf2b9

Please sign in to comment.