From: Jonathan McDowell Date: Fri, 15 Sep 2023 10:21:29 +0000 (+0530) Subject: Fix systemd unit files to deal with socket activation X-Git-Tag: onak-0.6.3~9 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=db700de99a954f1d88d15b28b386bc5b5e694df7;p=onak.git 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. --- 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