misjudgement between update-rc.d and chkconfig
utils/install_server.sh line:176~183
if [ !which chkconfig ] ; then
#if we're not a chkconfig box assume we're able to use update-rc.d
update-rc.d redis_$REDIS_PORT defaults && echo "Success!"
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!"
fi
line 176 need change to if [ ! which chkconfig ] ; then
miss a space behind "!"
@FightingMan
I met the same problem today. Besides, there're some other spaces missed in install_server.sh in line 62, 72 and 81, which makes customized configuration ignored.
e.g.
if [ !"$REDIS_CONFIG_FILE" ] ; then
REDIS_CONFIG_FILE=$_REDIS_CONFIG_FILE
echo "Selected default - $REDIS_CONFIG_FILE"
fi
@FightingMan
My shell is /bin/bash