gentoo/dev-python/dkimpy-milter/files/dkimpy-milter.initd
Eray Aslan 581c52de5c
dev-python/dkimpy-milter: new package, add 1.2.3
Signed-off-by: Eray Aslan <eras@gentoo.org>
2025-11-12 18:03:54 +01:00

23 lines
526 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
CONFFILE="/etc/dkimpy-milter/${RC_SVCNAME}.conf"
required_files="${CONFFILE}"
command="/usr/bin/dkimpy-milter"
pidfile="/run/dkimpy-milter/${RC_SVCNAME}.pid"
command_args="${CONFFILE} -P ${pidfile}"
depend() {
use dns logger net
before mta
}
start() {
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --background --exec "${command}" \
--pidfile "${pidfile}" -- "${CONFFILE}"
eend $?
}