forked from pool/redis
Accepting request 57725 from home:gladiac:server
OBS-URL: https://build.opensuse.org/request/show/57725 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=15
This commit is contained in:
parent
a4e2c189a5
commit
7a2f6b0e7c
@ -2,7 +2,7 @@ Index: utils/redis_init_script
|
||||
===================================================================
|
||||
--- utils/redis_init_script.orig
|
||||
+++ utils/redis_init_script
|
||||
@@ -1,36 +1,64 @@
|
||||
@@ -1,36 +1,69 @@
|
||||
#!/bin/sh
|
||||
+#
|
||||
+# /etc/init.d/redis
|
||||
@ -38,9 +38,13 @@ Index: utils/redis_init_script
|
||||
- else
|
||||
- echo -n "Starting Redis server...\n"
|
||||
- $EXEC $CONF
|
||||
- fi
|
||||
+ # Create a pidfile the server can write into.
|
||||
+ if [ ! -r $PIDFILE ]; then
|
||||
+ touch $PIDFILE
|
||||
+ chown redis:redis $PIDFILE
|
||||
fi
|
||||
+ echo -n "Starting service Redis "
|
||||
+ /sbin/startproc -u redis -g redis -p $PIDFILE -s -e $EXEC $CONF >/dev/null
|
||||
+ /sbin/startproc -u redis -g redis -p $PIDFILE -s -e $EXEC $CONF >/dev/null 2>&1
|
||||
+ rc_status -v
|
||||
;;
|
||||
stop)
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 10 16:29:31 CET 2011 - asn@cryptomilk.org
|
||||
|
||||
- Fixed creation of the pid file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 9 23:28:39 CET 2011 - asn@cynapses.org
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user