diff options
Diffstat (limited to 'testing/exim/exim.initd')
-rw-r--r-- | testing/exim/exim.initd | 20 |
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 $? } |