From 3cf854bed370b7aff65eb394f09c0dad3ec85c9b Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Tue, 8 Jun 2021 13:28:04 +0100 Subject: systemd service is more robust. fix $_PKG_HONKDIR --- honk.service | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'honk.service') 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 -- cgit v1.2.3-70-g09d2