Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
81772ce0
Commit
81772ce0
authored
Dec 11, 2014
by
Salvatore Sanfilippo
Browse files
Merge pull request #2103 from coderholic/unstable
Update redis_init_script.tpl
parents
f24a0bc1
dab5c09a
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/redis_init_script.tpl
View file @
81772ce0
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment