From 79d3367860d989851c6842fce70601420439ab5c Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sat, 26 Nov 2022 16:50:03 +0000 Subject: [PATCH] Fix /run/onak creation The keyd socket was previously moved under /run/onak so that subdirectory could be owned by the onak user. However the systemd ExecStartPre commands run as the onak user, so the creation + ownership setup was not properly happening. Prefix with a +, which tells systemd these commands ignore the User= setting. --- debian/onak.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/onak.service b/debian/onak.service index c3ad674..60ba20c 100644 --- a/debian/onak.service +++ b/debian/onak.service @@ -4,8 +4,8 @@ Documentation=man:keyd [Service] User=onak -ExecStartPre=/bin/mkdir -m 0755 /run/onak -ExecStartPre=/bin/chown onak /run/onak +ExecStartPre=+/bin/mkdir -p -m 0755 /run/onak +ExecStartPre=+/bin/chown onak /run/onak ExecStart=/usr/sbin/keyd -f ExecStop=/usr/bin/keydctl quit -- 2.39.5