aboutsummaryrefslogtreecommitdiffstats
path: root/testing/exim/exim.initd
diff options
context:
space:
mode:
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 $?
}