summaryrefslogtreecommitdiff
path: root/statuspage-git/statuspage.service
diff options
context:
space:
mode:
Diffstat (limited to 'statuspage-git/statuspage.service')
-rw-r--r--statuspage-git/statuspage.service32
1 files changed, 32 insertions, 0 deletions
diff --git a/statuspage-git/statuspage.service b/statuspage-git/statuspage.service
new file mode 100644
index 0000000..ea2dd09
--- /dev/null
+++ b/statuspage-git/statuspage.service
@@ -0,0 +1,32 @@
+[Unit]
+Description=service status page
+After=network.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/bin/statuspage /etc/statuspage.yaml
+User=statuspage
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
+NoNewPrivileges=yes
+PrivateDevices=true
+PrivateTmp=true
+ProtectClock=yes
+ProtectControlGroups=yes
+ProtectHome=true
+ProtectHostname=yes
+ProtectKernelLogs=yes
+ProtectKernelModules=yes
+ProtectKernelTunables=yes
+ProtectSystem=full
+RestrictAddressFamilies=~AF_PACKET AF_NETLINK
+RestrictNamespaces=yes
+RestrictSUIDSGID=yes
+RestrictRealtime=yes
+Restart=always
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+Type=simple
+
+[Install]
+WantedBy=multi-user.target