Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c4286fea
Commit
c4286fea
authored
May 04, 2012
by
quiver
Browse files
fix several bugs of init.d scripts
- PIDFILE environ variable was not properly retrieved - chkconfig command failed
parent
96e9f8d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
utils/install_server.sh
View file @
c4286fea
...
...
@@ -166,7 +166,7 @@ if [[ ! `which chkconfig` ]] ; then
else
# we're chkconfig, so lets add to chkconfig and put in runlevel 345
chkconfig
--add
redis_
$REDIS_PORT
&&
echo
"Successfully added to chkconfig!"
chkconfig--level 345 redis_
$REDIS_PORT
on
&&
echo
"Successfully added to runlevels 345!"
chkconfig
--level
345 redis_
$REDIS_PORT
on
&&
echo
"Successfully added to runlevels 345!"
fi
/etc/init.d/redis_
$REDIS_PORT
start
||
die
"Failed starting service..."
...
...
utils/redis_init_script.tpl
View file @
c4286fea
case "$1" in
start)
if [ -f
$
$PIDFILE ]
if [ -f $PIDFILE ]
then
echo "$PIDFILE exists, process is already running or crashed"
else
...
...
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