1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/exim/exim.initd
Valery Kartel d2cd24dba5 community/exim: fix CVE-2017-16943, some cleanups
CVE-2017-16943 fix: https://bugs.exim.org/show_bug.cgi?id=2199

remove all "return 1"

create directories for logs and extensions at package time and remove
this creation from init script
2017-11-28 12:10:17 +00:00

27 lines
507 B
Text

#!/sbin/openrc-run
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() {
use antivirus net
provide mta
}
start_pre() {
ebegin
$command -bV >/dev/null 2>>${startuplog:-/dev/null}
eend $?
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile $pidfile
eend $?
}