summaryrefslogtreecommitdiffstatshomepage
path: root/contrib/systemd
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-24 09:57:30 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-24 09:59:57 +0100
commit985c51b440604af164576ad97175158143d22c7e (patch)
tree8557766cfd9f0005c928b5f387fe782656762b83 /contrib/systemd
parent66207b704848f644a92cd79be05d6e180b09f606 (diff)
downloadsentrum-985c51b440604af164576ad97175158143d22c7e.tar.gz
sentrum-985c51b440604af164576ad97175158143d22c7e.tar.bz2
sentrum-985c51b440604af164576ad97175158143d22c7e.zip
Move service file to contrib/systemd
Diffstat (limited to 'contrib/systemd')
-rw-r--r--contrib/systemd/sentrum.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/systemd/sentrum.service b/contrib/systemd/sentrum.service
new file mode 100644
index 0000000..2d27524
--- /dev/null
+++ b/contrib/systemd/sentrum.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=sentrum daemon
+
+[Service]
+ExecStart=/usr/bin/sentrum
+User=sentrum
+
+# Hardening
+PrivateTmp=true
+ProtectSystem=full
+NoNewPrivileges=true
+PrivateDevices=true
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target