From 2e77e7eed424e3e65d86383ff2c545995ea30d14 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 2 Jan 2023 15:52:58 +0000 Subject: [PATCH] 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. --- debian/changelog | 7 +++++++ debian/onak.service | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.5