aboutsummaryrefslogtreecommitdiffstats
path: root/main/dkimproxy/dkimproxy.out.initd
blob: 87c5df94a33496392ccd93a097085d8a2c23404d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/sbin/openrc-run

description="SMTP proxy that verifies signature on outgoing messages"

depend() {
	need net
	after firewall
}

checkconfig() {
	if [ ! -f ${CONFIGFILE} ]; then
		eerror "Missing configuration file ${CONFIGFILE}"
		return 1
	fi
}

start() {
	checkconfig || return 1
	ebegin "Starting dkimproxy.out"
	start-stop-daemon --start -q --exec /usr/sbin/dkimproxy.out \
		--pidfile "${PIDFILE}" --make-pidfile --background \
		-- --conf_file=${CONFIGFILE} ${OPTS}
	eend $?
}


stop() {
	ebegin "Stopping dkimproxy.out"
	start-stop-daemon --stop -q --pidfile "${PIDFILE}"
	eend $?
}