aboutsummaryrefslogtreecommitdiffstats
path: root/main/dkimproxy/dkimproxy.out.initd
blob: ec1fba8869700ec5b634877db031da8685ad6bc3 (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/runscript

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 $?
}