mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -3,8 +3,13 @@ Description=SKS database thread
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/sks db
|
||||
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]
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
[Unit]
|
||||
Description=SKS key reconnaissance thread
|
||||
After=network.target
|
||||
After=network.target sks-db.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/sks recon
|
||||
Environment=SKS_DIR=/var/lib/sks
|
||||
EnvironmentFile=-/etc/sysconfig/sks
|
||||
ExecStart=/usr/bin/sks recon ${SKS_OPTIONS} ${SKS_RECON_OPTIONS}
|
||||
User=sks
|
||||
# WorkingDirectory cannot use a variable
|
||||
WorkingDirectory=/var/lib/sks
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user