summaryrefslogtreecommitdiff
path: root/honk.service
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-08 13:47:16 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-06-08 13:47:16 +0100
commitb46d1fc97e8ba0304c539c5622a7cbde01d91130 (patch)
tree9a45c3ed2cfc5dd4e1d11822fc664294a3134c89 /honk.service
parent8e947e03130f4319341a6b76f3fc7793a11e33f8 (diff)
downloadhonk_aur-b46d1fc97e8ba0304c539c5622a7cbde01d91130.tar.gz
honk_aur-b46d1fc97e8ba0304c539c5622a7cbde01d91130.zip
systemd service is more robust. gzip manpages.
- the curious thing is thaht in my honk-hg package zipman *does* gzip the manpages without problems, but not with extracted sources from tarballs like here?
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