aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exim/exim.initd
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-01-21 20:17:16 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-01-22 19:18:59 +0000
commit3d541bc87eb551bcfa738fdf8251faa91a494a3a (patch)
tree99e5666df04584d139a97764acd92aa0c1767693 /testing/exim/exim.initd
parenteb2f9f7bd1b04850f6f9663fe5d2cb3c144cf958 (diff)
downloadaports-3d541bc87eb551bcfa738fdf8251faa91a494a3a.tar.bz2
aports-3d541bc87eb551bcfa738fdf8251faa91a494a3a.tar.xz
testing/exim: add rspamd local_scan support, cleanups in init and pre-install scripts
Diffstat (limited to 'testing/exim/exim.initd')
-rw-r--r--testing/exim/exim.initd20
1 files changed, 14 insertions, 6 deletions
diff --git a/testing/exim/exim.initd b/testing/exim/exim.initd
index ef0ddc5a73..fd0d9bd3be 100644
--- a/testing/exim/exim.initd
+++ b/testing/exim/exim.initd
@@ -1,19 +1,27 @@
#!/sbin/openrc-run
-pidfile="/run/exim.pid"
-command="/usr/sbin/exim"
-command_args="${EXIM_OPTS:--bd -q15m}"
-required_files="/etc/exim/exim.conf"
+description="EXIM internet mailer"
+cfgfile=/etc/exim/exim.conf
+pidfile=/run/exim.pid
+command=/usr/sbin/exim
+command_args=${command_args:--bd -q15m}
+required_files="$cfgfile"
extra_started_commands="reload"
+description_reload="Reload configuration"
depend() {
- need logger
use antivirus net
provide mta
}
+start_pre() {
+ ebegin
+ $command -bV >/dev/null 2>>${startuplog:-/dev/null}
+ eend $?
+}
+
reload() {
ebegin "Reloading ${SVCNAME}"
- start-stop-daemon --signal HUP --pidfile ${pidfile} --name ${SVCNAME}
+ start-stop-daemon --signal HUP --pidfile $pidfile
eend $?
}