[redis] redis.service: Fix config and user/group. Ta Timon.

Fabian Deutsch fabiand at fedoraproject.org
Tue Jan 31 14:52:23 UTC 2012


commit e8dff38f7b648c322be3ff56ef00c605fdbe4505
Author: Fabian Deutsch <fabian.deutsch at gmx.de>
Date:   Tue Jan 31 15:49:28 2012 +0100

    redis.service: Fix config and user/group. Ta Timon.
    
    Points redis-server to the appropriate config and runs the server as
    redis:redis. Thanks Timon.
    
    Signed-off-by: Fabian Deutsch <fabian.deutsch at gmx.de>

 redis.service |    5 ++++-
 redis.spec    |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/redis.service b/redis.service
index 4983939..f1322f6 100644
--- a/redis.service
+++ b/redis.service
@@ -3,8 +3,11 @@ Description=A persistent key-value database
 After=syslog.target network.target
 
 [Service]
+Type=forking
 PIDFile=/var/run/redis/redis.pid
-ExecStart=/usr/sbin/redis-server
+ExecStart=/usr/sbin/redis-server /etc/redis.conf
+User=redis
+Group=redis
 
 [Install]
 WantedBy=multi-user.target
diff --git a/redis.spec b/redis.spec
index e1313ca..5d82f49 100644
--- a/redis.spec
+++ b/redis.spec
@@ -8,7 +8,7 @@
 
 Name:             redis
 Version:          2.4.6
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          A persistent key-value database
 
 Group:            Applications/Databases
@@ -114,6 +114,9 @@ fi
 %{_unitdir}/%{name}.service
 
 %changelog
+* Tue Jan 31 2012 Fabian Deutsch <fabiand at fedoraproject.org> - 2.4.6-2
+- Fix .service file, credits go to Timon.
+
 * Thu Jan 12 2012 Fabian Deutsch <fabiand at fedoraproject.org> - 2.4.6-1
 - Update to 2.4.6
 - systemd unit file added


More information about the scm-commits mailing list