From db700de99a954f1d88d15b28b386bc5b5e694df7 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Fri, 15 Sep 2023 15:51:29 +0530 Subject: [PATCH] Fix systemd unit files to deal with socket activation If we make the onak.service file require onak.socket then systemd will take care of creating the Unix domain socket file, and we can avoid the need to setup the RuntimeDirectory. --- debian/onak.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/onak.service b/debian/onak.service index 08c58cd..44b6149 100644 --- a/debian/onak.service +++ b/debian/onak.service @@ -1,10 +1,10 @@ [Unit] Description=Backend caching key daemon for onak OpenPGP keyserver Documentation=man:keyd +Requires=onak.socket [Service] User=onak -RuntimeDirectory=onak ExecStart=/usr/sbin/keyd -f ExecStop=/usr/bin/keydctl quit -- 2.39.2