summaryrefslogtreecommitdiff
path: root/dev-python/dkimpy-milter/files/dkimpy-milter.initd
blob: e90d3bbec740721756167297b262cb4bd659b767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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 $?
}