summarylogtreecommitdiffstats
path: root/geph-client@.service
diff options
context:
space:
mode:
authorDct Mei2020-08-21 21:41:06 +0800
committerSteven Tang2020-08-22 22:01:51 +0800
commit82a4ab2263577a3844157841e3f55095d6fb5c2d (patch)
tree7bba7af4ccf9d3c26e23c8ee39a80fd28096ce59 /geph-client@.service
parent40e02255f67a4ca36865c1243f48fd44c2ec6b17 (diff)
downloadaur-82a4ab2263577a3844157841e3f55095d6fb5c2d.tar.gz
feat: v0.22.2-4
1. Use more complete user access control.
Diffstat (limited to 'geph-client@.service')
-rw-r--r--geph-client@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/geph-client@.service b/geph-client@.service
new file mode 100644
index 000000000000..dd64caeff516
--- /dev/null
+++ b/geph-client@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Geph client Service
+After=network.target nss-lookup.target
+
+[Service]
+User=geph-client
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
+ExecStart=/usr/bin/geph-client -config /etc/geph2/%i.ini
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target