summaryrefslogtreecommitdiff
blob: fe6d5fa8293d4198bec62bdac9813fbf43454016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

depend() {
	want mta
}

start() {
	ebegin "Starting the DNSSEC monitoring daemon"
	start-stop-daemon --start --pidfile ${DONUTSD_PIDFILE} --make-pidfile --background --exec ${DONUTSD_CMD} -- -i ${DONUTSD_CONFPATH} ${DONUTSD_OPTS}
	eend $? "failed to start donutsd"
}

stop() {
	ebegin "Stopping donutsd"
	start-stop-daemon --stop --pidfile ${DONUTSD_PIDFILE}
	eend $? "Failed to stop donutsd"
}