]> the.earth.li Git - onak.git/commitdiff
Switch to RuntimeDirectory in systemd service file
authorJonathan McDowell <noodles@earth.li>
Mon, 2 Jan 2023 15:52:58 +0000 (15:52 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 2 Jan 2023 15:55:13 +0000 (15:55 +0000)
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
debian/onak.service

index 4992d3441ed44fa4b1eec70b3421af9373b67829..49871dd2ea19b70bb81e9664ad8be97cb05d0537 100644 (file)
@@ -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 <noodles@earth.li>  Mon, 02 Jan 2023 15:55:04 +0000
+
 onak (0.6.2-1) unstable; urgency=low
 
   * New upstream release
index 60ba20c5b165e9cde3395fe8ff5a18101b7c993a..fe3f0b0e907945725f09234b9b44f89ce6938d4e 100644 (file)
@@ -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