summaryrefslogtreecommitdiff
path: root/honk.service
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-08 13:28:04 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-06-08 13:52:15 +0100
commit3cf854bed370b7aff65eb394f09c0dad3ec85c9b (patch)
tree72c51524465a2f6ae37db54c661f1e9f469969b8 /honk.service
parent4e3c0a42f20e67b9c6e4ed26e30c60bf8910d8be (diff)
downloadhonk-hg_aur-3cf854bed370b7aff65eb394f09c0dad3ec85c9b.tar.gz
honk-hg_aur-3cf854bed370b7aff65eb394f09c0dad3ec85c9b.zip
systemd service is more robust. fix $_PKG_HONKDIR
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..f42c7aa 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
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+
User=honk
Group=honk