aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exim/exim.initd
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2015-10-07 18:02:20 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-08 12:18:40 +0000
commit7106c1107e9585d209dfbecd4916f20e0e898cc1 (patch)
treeb205a26eaae0e227717c6e5286556582af4b8c1a /testing/exim/exim.initd
parent589db5c8039fa2c5fa5e29181c62623ea43dd15b (diff)
downloadaports-7106c1107e9585d209dfbecd4916f20e0e898cc1.tar.bz2
aports-7106c1107e9585d209dfbecd4916f20e0e898cc1.tar.xz
testing/exim: move config from /etc/mail to /etc/exim. lsearch used in default config, so compile it builtin. init-script cleanup
Diffstat (limited to 'testing/exim/exim.initd')
-rw-r--r--testing/exim/exim.initd19
1 files changed, 6 insertions, 13 deletions
diff --git a/testing/exim/exim.initd b/testing/exim/exim.initd
index 8e287052ca..15a74897d7 100644
--- a/testing/exim/exim.initd
+++ b/testing/exim/exim.initd
@@ -1,5 +1,10 @@
#!/sbin/openrc-run
+name="$SVCNAME"
+pidfile="/var/run/$SVCNAME.pid"
+command="/usr/sbin/$SVCNAME"
+command_args="${EXIM_OPTS:--bd -q15m}"
+required_files="/etc/exim/${SVCNAME}.conf"
extra_started_commands="reload"
depend() {
@@ -8,20 +13,8 @@ depend() {
provide mta
}
-start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --quiet --exec /usr/sbin/${SVCNAME} --pidfile /var/run/${SVCNAME}.pid -- ${EXIM_OPTS:--bd -q15m}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid --name ${SVCNAME}
- eend $?
-}
-
reload() {
ebegin "Reloading ${SVCNAME}"
- start-stop-daemon --signal HUP --pidfile /var/run/${SVCNAME}.pid --name ${SVCNAME}
+ start-stop-daemon --signal HUP --pidfile ${pidfile} --name ${SVCNAME}
eend $?
}