summaryrefslogtreecommitdiffstats
path: root/testing/dkimproxy/dkimproxy.out.initd
blob: d8ff15b3602b6ba8a45bcd5bfd84fd12dacb02a9 (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
32
33
34
35
#!/sbin/runscript

<<<<<<< HEAD
description="SMTP proxy that verifies signature on incoming messages"
=======
description="SMTP proxy that verifies signature on outgoing messages"
>>>>>>> c372a61b6ea8710b50e09bc8e12e8dc58a2e7dfa

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