Created
November 15, 2018 04:26
-
-
Save WhiteyDude/13e4a884fc0cef08d8639a4808817f5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $1 ]; then | |
echo "Syntax is $0 <port>" | |
exit 1 | |
fi | |
if [ -f "/var/run/redis_$1.pid" ]; then | |
#pid=`cat /var/run/redis_$1.pid` | |
# kill -15 $pid | |
redis-cli -p $1 shutdown | |
fi | |
/usr/local/bin/redis-server /etc/redis/$1.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment