]> the.earth.li Git - onak.git/commitdiff
Fix systemd unit files to deal with socket activation
authorJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 10:21:29 +0000 (15:51 +0530)
committerJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 10:21:29 +0000 (15:51 +0530)
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

index 08c58cd0b6c56e49e48062f77c635e18dabeaaa4..44b6149009ba2b08198c476b0be5fdf3b94c780e 100644 (file)
@@ -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