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.orig
|
||||||
+++ utils/redis_init_script
|
+++ utils/redis_init_script
|
||||||
@@ -1,36 +1,64 @@
|
@@ -1,36 +1,69 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
+#
|
+#
|
||||||
+# /etc/init.d/redis
|
+# /etc/init.d/redis
|
||||||
@ -38,9 +38,13 @@ Index: utils/redis_init_script
|
|||||||
- else
|
- else
|
||||||
- echo -n "Starting Redis server...\n"
|
- echo -n "Starting Redis server...\n"
|
||||||
- $EXEC $CONF
|
- $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 "
|
+ 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
|
+ rc_status -v
|
||||||
;;
|
;;
|
||||||
stop)
|
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
|
Sun Jan 9 23:28:39 CET 2011 - asn@cynapses.org
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user