mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 06:35:19 +02:00
- 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>
16 lines
542 B
Desktop File
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
|