aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dkimproxy/dkimproxy.out.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-01-02 09:27:23 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-01-02 09:27:23 +0000
commitc372a61b6ea8710b50e09bc8e12e8dc58a2e7dfa (patch)
tree7df9ef36a2addd330f960f3ceed7bcf2ec26b75b /testing/dkimproxy/dkimproxy.out.initd
parent2591825e3b35185e7cd82ac16d0d5fd55c128051 (diff)
downloadaports-c372a61b6ea8710b50e09bc8e12e8dc58a2e7dfa.tar.bz2
aports-c372a61b6ea8710b50e09bc8e12e8dc58a2e7dfa.tar.xz
testing/dkimproxy: Fixes #1474, bump pkgrel.
Diffstat (limited to 'testing/dkimproxy/dkimproxy.out.initd')
-rw-r--r--testing/dkimproxy/dkimproxy.out.initd27
1 files changed, 23 insertions, 4 deletions
diff --git a/testing/dkimproxy/dkimproxy.out.initd b/testing/dkimproxy/dkimproxy.out.initd
index 7e395412fc..ec1fba8869 100644
--- a/testing/dkimproxy/dkimproxy.out.initd
+++ b/testing/dkimproxy/dkimproxy.out.initd
@@ -1,12 +1,31 @@
#!/sbin/runscript
-command="/usr/sbin/${RC_SVCNAME}"
-command_args="${OPTS}"
-pidfile="/var/run/${RC_SVCNAME}.pid"
-description="SMTP proxy that signs outgoing messages"
+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 $?
+}