summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/redis/files/redis.initd')
-rw-r--r--dev-db/redis/files/redis.initd6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev-db/redis/files/redis.initd b/dev-db/redis/files/redis.initd
index 899c2d666b7e..337ca6e7fcb3 100644
--- a/dev-db/redis/files/redis.initd
+++ b/dev-db/redis/files/redis.initd
@@ -1,5 +1,5 @@
#!/sbin/runscript
-# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/files/redis.initd,v 1.3 2011/12/04 10:36:35 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/files/redis.initd,v 1.4 2012/02/04 21:17:55 swegener Exp $
REDIS_EXEC=/usr/sbin/redis-server
REDIS_PID=${REDIS_PID:-/var/run/redis/redis.pid}
@@ -21,9 +21,9 @@ start() {
chown ${REDIS_USER}:${REDIS_GROUP} ${PID_DIR}
ebegin "Starting Redis server"
- cd "${REDIS_DIR}"
start-stop-daemon --start \
- --chuid ${REDIS_USER}:${REDIS_GROUP} \
+ --chdir "${REDIS_DIR}" \
+ --user ${REDIS_USER}:${REDIS_GROUP} \
--pidfile "${REDIS_PID}" \
--exec "${REDIS_EXEC}" \
-- ${REDIS_OPTS}