summarylogtreecommitdiffstats
path: root/geph4-client.service
diff options
context:
space:
mode:
Diffstat (limited to 'geph4-client.service')
-rw-r--r--geph4-client.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/geph4-client.service b/geph4-client.service
new file mode 100644
index 000000000000..2145097434c2
--- /dev/null
+++ b/geph4-client.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Geph4 client Service
+After=network.target nss-lookup.target
+
+[Service]
+DynamicUser=true
+CacheDirectory=geph4-client
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
+EnvironmentFile=/etc/default/geph4-client
+ExecStart=/usr/bin/geph4-client $SUBCOMMAND $FLAGS $OPTIONS --credential-cache /var/cache/geph4-client/ --password $PASSWORD --username $USERNAME
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target