summarylogtreecommitdiffstats
path: root/sheepit-client.service
diff options
context:
space:
mode:
authorXyem2022-04-20 23:32:25 +0100
committerXyem2022-04-20 23:32:25 +0100
commitdd61ad4b9fb2f7e2c161d8a4cb7444a1e21be01f (patch)
treec16b5d139d9e29732ee9f0c675b0c06a4e558b92 /sheepit-client.service
downloadaur-sheepit-client-systemd.tar.gz
Initial release
Diffstat (limited to 'sheepit-client.service')
-rw-r--r--sheepit-client.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/sheepit-client.service b/sheepit-client.service
new file mode 100644
index 000000000000..e934e04fc365
--- /dev/null
+++ b/sheepit-client.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Service for SheepIt client
+After=network.target
+
+[Service]
+User=sheepit-client
+ExecStart=/usr/bin/sheepit-client -config /etc/conf.d/sheepit-client
+CacheDirectoryMode=700
+CacheDirectory=sheepit-client/
+NoNewPrivileges=true
+PrivateDevices=true
+ProtectControlGroups=true
+ProtectHome=true
+ProtectKernelTunables=true
+ProtectSystem=strict
+Restart=on-failure
+RestartSec=60
+RestrictNamespaces=true
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target