i think we need the following three files to run sks from systemd:


/usr/lib/tmpfiles.d/sks-db.conf
-----------------
d /run/sks 0700 debian-sks debian-sks
-----------------



/lib/systemd/system/sks-db.service 
-----------------
[Unit]
Description=SKS database service

[Service]
Type=simple
ExecStart=/usr/sbin/sks -stdoutlog db
User=debian-sks

[Install]
WantedBy=multi-user.target
-----------------



/lib/systemd/system/sks.service
-----------------
[Unit]
Description=SKS reconciliation service

[Service]
Type=simple
ExecStart=/usr/sbin/sks -stdoutlog recon
User=debian-sks
BindTo=sks-db.service
After=sks-db.service

[Install]
WantedBy=multi-user.target
-----------------


we may also want to consider a timer file to encourage rebuild of the
stats on a regular basis by sending SIGUSR2 to sks-db.service.

      --dkg

Attachment: pgpMFBsrRBuga.pgp
Description: PGP signature

Reply via email to