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
7f9a4db3
Commit
7f9a4db3
authored
Sep 09, 2010
by
antirez
Browse files
Fix for the init script provided with Redis, thanks to Rowan. This fixes issue 316
parent
da14590b
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/redis_init_script
View file @
7f9a4db3
...
@@ -21,15 +21,14 @@ case "$1" in
...
@@ -21,15 +21,14 @@ case "$1" in
then
then
echo
-n
"
$PIDFILE
does not exist, process is not running
\n
"
echo
-n
"
$PIDFILE
does not exist, process is not running
\n
"
else
else
PID
=
$(
cat
$PIDFILE
)
echo
-n
"Stopping ...
\n
"
echo
-n
"Stopping ...
\n
"
echo
-n
"Sending SHUTDOWN
\r\n
"
| nc localhost
$REDISPORT
&
echo
-n
"SHUTDOWN
\r\n
"
| nc localhost
$REDISPORT
&
PID
=
$(
cat
$PIDFILE
)
while
[
-x
/proc/
${
PIDFILE
}
]
while
[
-x
/proc/
${
PIDFILE
}
]
do
do
echo
"Waiting for Redis to shutdown ..."
echo
"Waiting for Redis to shutdown ..."
sleep
1
sleep
1
done
done
rm
$PIDFILE
echo
"Redis stopped"
echo
"Redis stopped"
fi
fi
;;
;;
...
...
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