gentoo-ebuilds/net-misc/sks/files/sks-db.service
Robin H. Johnson 10e3fa8b58
net-misc/sks: match init.d behavior
- support args to systemd service
- ensure paths are correctly owned (/var/lib/sks/{PTree,KDB} must exist)
- sks-recon must start after sks-db

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2024-03-24 22:55:35 -07:00

16 lines
542 B
Desktop File

[Unit]
Description=SKS database thread
After=network.target
[Service]
Environment=SKS_DIR=/var/lib/sks
EnvironmentFile=-/etc/sysconfig/sks
ExecStartPre=/usr/lib/rc/bin/checkpath --owner sks:sks --directory ${SKS_DIR} ${SKS_DIR}/SKS ${SKS_DIR}/PTree
ExecStartPre=/usr/lib/rc/bin/checkpath --owner sks:sks --file ${SKS_DIR}/*.log ${SKS_DIR}/KDB/* ${SKS_DIR}/PTree/*
ExecStart=/usr/bin/sks db ${SKS_OPTIONS} ${SKS_DB_OPTIONS}
User=sks
# WorkingDirectory cannot use a variable
WorkingDirectory=/var/lib/sks
[Install]
WantedBy=multi-user.target