summarylogtreecommitdiffstats
path: root/redict-sentinel.service
diff options
context:
space:
mode:
Diffstat (limited to 'redict-sentinel.service')
-rw-r--r--redict-sentinel.service24
1 files changed, 24 insertions, 0 deletions
diff --git a/redict-sentinel.service b/redict-sentinel.service
new file mode 100644
index 000000000000..f75d16761eab
--- /dev/null
+++ b/redict-sentinel.service
@@ -0,0 +1,24 @@
+[Unit]
+Description=High availability daemon for Redict
+After=network.target
+
+[Service]
+Type=notify
+User=redict
+Group=redict
+ExecStart=/usr/bin/redict-sentinel /etc/redict/sentinel.conf --supervised systemd
+TimeoutStartSec=60
+TimeoutStopSec=60
+CapabilityBoundingSet=
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+ProtectHome=true
+ReadWritePaths=/etc/redict/
+NoNewPrivileges=true
+RuntimeDirectory=redict
+RuntimeDirectoryMode=755
+LimitNOFILE=10032
+
+[Install]
+WantedBy=multi-user.target