SHA256
1
0
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:
Pavol Rusnak 2011-01-10 15:36:14 +00:00 committed by Git OBS Bridge
parent a4e2c189a5
commit 7a2f6b0e7c
2 changed files with 12 additions and 3 deletions

View File

@ -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)

View File

@ -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