summaryrefslogtreecommitdiff
path: root/honk.service
diff options
context:
space:
mode:
Diffstat (limited to 'honk.service')
-rw-r--r--honk.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/honk.service b/honk.service
index 661030b..0d9d3ba 100644
--- a/honk.service
+++ b/honk.service
@@ -1,9 +1,20 @@
[Unit]
Description="Honk ActivityPub server"
+After=syslog.target network.target
+Requires=network.target
[Service]
+Restart=always
+RestartSec=30
WorkingDirectory=/usr/share/honk
ExecStart=/usr/bin/honk
+NoNewPrivileges=yes
+ProtectKernelLogs=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+ReadWritePaths=/usr/share/honk
+
User=honk
Group=honk