From: Jonathan McDowell Date: Mon, 2 Jan 2023 15:52:58 +0000 (+0000) Subject: Switch to RuntimeDirectory in systemd service file X-Git-Tag: onak-0.6.3~27 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=2e77e7eed424e3e65d86383ff2c545995ea30d14;p=onak.git Switch to RuntimeDirectory in systemd service file Instead of the ExecStartPre commands for creating our runtime directory switch to the correct approach, RuntimeDirectory. Thanks to Guillem Jover for the pointer. --- diff --git a/debian/changelog b/debian/changelog index 4992d34..49871dd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +onak (0.6.2-2) UNRELEASED; urgency=low + + * Switch to RuntimeDirectory in systemd service file. Thanks to Guillem + Jover for the pointer. + + -- Jonathan McDowell Mon, 02 Jan 2023 15:55:04 +0000 + onak (0.6.2-1) unstable; urgency=low * New upstream release diff --git a/debian/onak.service b/debian/onak.service index 60ba20c..fe3f0b0 100644 --- a/debian/onak.service +++ b/debian/onak.service @@ -4,8 +4,7 @@ Documentation=man:keyd [Service] User=onak -ExecStartPre=+/bin/mkdir -p -m 0755 /run/onak -ExecStartPre=+/bin/chown onak /run/onak +RuntimeDirectory=/run/onak ExecStart=/usr/sbin/keyd -f ExecStop=/usr/bin/keydctl quit