aboutsummaryrefslogtreecommitdiffstats
path: root/main/dkimproxy/dkimproxy.out.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2014-05-22 14:18:02 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-05-22 14:18:52 +0000
commitf5bcaef23b255239cc7f888e8f2ebb7196c5c26d (patch)
treedb5b7aecad2bdca2dcd83f2dab9066380bcf369c /main/dkimproxy/dkimproxy.out.initd
parent2a2a8dd7d9a65f82b81909d5d97aa2dc515fcd88 (diff)
downloadaports-f5bcaef23b255239cc7f888e8f2ebb7196c5c26d.tar.bz2
aports-f5bcaef23b255239cc7f888e8f2ebb7196c5c26d.tar.xz
testing/dkimproxy: move to main
Diffstat (limited to 'main/dkimproxy/dkimproxy.out.initd')
-rw-r--r--main/dkimproxy/dkimproxy.out.initd31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/dkimproxy/dkimproxy.out.initd b/main/dkimproxy/dkimproxy.out.initd
new file mode 100644
index 0000000000..ec1fba8869
--- /dev/null
+++ b/main/dkimproxy/dkimproxy.out.initd
@@ -0,0 +1,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 $?
+}