You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/sks/files/sks-recon.initd

27 lines
583 B

#!/sbin/openrc-run
source /etc/conf.d/sks
command=/usr/bin/sks
command_args="recon ${SKS_ARGS}"
command_background=1
description="Reconnoiters SKS peers for keys"
name="SKS recon"
pidfile="/var/run/sks-recon.pid"
required_files="${SKS_DIR}/sksconf ${SKS_DIR}/membership"
start_stop_daemon_args="--chdir ${SKS_DIR} --user sks"
depend()
{
after sks-db
use net
}
start_pre()
{
checkpath --owner sks:sks --directory \
${SKS_DIR} ${SKS_DIR}/KDB ${SKS_DIR}/PTree
checkpath --owner sks:sks --file \
${SKS_DIR}/*.log ${SKS_DIR}/KDB/* ${SKS_DIR}/PTree/*
}