diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2015-10-07 18:02:20 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-08 12:18:40 +0000 |
commit | 7106c1107e9585d209dfbecd4916f20e0e898cc1 (patch) | |
tree | b205a26eaae0e227717c6e5286556582af4b8c1a /testing/exim/exim.initd | |
parent | 589db5c8039fa2c5fa5e29181c62623ea43dd15b (diff) | |
download | aports-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.initd | 19 |
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 $? } |