summaryrefslogtreecommitdiffstats
path: root/testing/dkimproxy/dkimproxy.in.initd
blob: 0eb5a9b89ee45cfe69a1c27c6d16e1c889b5ac1e (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 incoming 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.in"
	start-stop-daemon --start -q --exec /usr/sbin/dkimproxy.in \
		--pidfile "${PIDFILE}" --make-pidfile --background \
		-- --conf_file=${CONFIGFILE} ${OPTS}
	eend $?
}


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