mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
32 lines
590 B
Plaintext
32 lines
590 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
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 $?
|
|
}
|