summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-10-15 18:35:38 +0000
committerPacho Ramos <pacho@gentoo.org>2013-10-15 18:35:38 +0000
commit278bce734108f5bad978d9e6064091814102d654 (patch)
tree1bbfda131357f19f5586473119e00558508f9724 /dev-db/redis/files
parentdev-python/sympy: Version BUmp; fix missing py3.3 handling, #488098 (diff)
downloadhistorical-278bce734108f5bad978d9e6064091814102d654.tar.gz
historical-278bce734108f5bad978d9e6064091814102d654.tar.bz2
historical-278bce734108f5bad978d9e6064091814102d654.zip
Add unit file (#488114 by Julien Sanchez)
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'dev-db/redis/files')
-rw-r--r--dev-db/redis/files/redis.service14
-rw-r--r--dev-db/redis/files/redis.tmpfiles2
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-db/redis/files/redis.service b/dev-db/redis/files/redis.service
new file mode 100644
index 000000000000..f1322f69f11e
--- /dev/null
+++ b/dev-db/redis/files/redis.service
@@ -0,0 +1,14 @@
+[Unit]
+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 /etc/redis.conf
+User=redis
+Group=redis
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/dev-db/redis/files/redis.tmpfiles b/dev-db/redis/files/redis.tmpfiles
new file mode 100644
index 000000000000..657d8a551d4b
--- /dev/null
+++ b/dev-db/redis/files/redis.tmpfiles
@@ -0,0 +1,2 @@
+# redis runtime directory
+d /var/run/redis 0755 redis root -