forked from pool/redis
osc copypac from project:server:database package:regis revision:2
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=1
This commit is contained in:
32
redis-initscript.patch
Normal file
32
redis-initscript.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
Index: utils/redis_init_script
|
||||
===================================================================
|
||||
--- utils/redis_init_script.orig
|
||||
+++ utils/redis_init_script
|
||||
@@ -1,7 +1,18 @@
|
||||
#!/bin/sh
|
||||
+### BEGIN INIT INFO
|
||||
+# Provides: redis
|
||||
+# Required-Start: $syslog $remote_fs
|
||||
+# Should-Start:
|
||||
+# Required-Stop: $syslog $remote_fs
|
||||
+# Should-Stop:
|
||||
+# Default-Start: 3 5
|
||||
+# Default-Stop: 0 1 2 6
|
||||
+# Short-Description: Redis server
|
||||
+# Description: Starts the Redis server
|
||||
+### END INIT INFO
|
||||
|
||||
REDISPORT=6379
|
||||
-EXEC=/usr/local/bin/redis-server
|
||||
+EXEC=/usr/sbin/redis-server
|
||||
|
||||
PIDFILE=/var/run/redis_${REDISPORT}.pid
|
||||
CONF="/etc/redis/${REDISPORT}.conf"
|
||||
@@ -33,4 +44,7 @@ case "$1" in
|
||||
echo "Redis stopped"
|
||||
fi
|
||||
;;
|
||||
+ *)
|
||||
+ echo "Usage: rcredis [start|stop]"
|
||||
+ ;;
|
||||
esac
|
Reference in New Issue
Block a user