aports/testing/exim/exim.initd
Stuart Cardall 7ee7d963a2 testing/exim: fix /usr/lib/exim log messages
adds a checkpath to initd for /usr/lib/exim
this stops hourly messages in exim's mainlog:

'Couldn't open /usr/lib/exim/: not loading lookup modules'
2017-04-08 21:09:21 +00:00

30 lines
605 B
Plaintext

#!/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
checkpath -d -o exim:mail -m750 "/var/log/exim"
checkpath -d -o exim:mail -m750 "/usr/lib/exim"
$command -bV >/dev/null 2>>${startuplog:-/dev/null}
eend $?
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile $pidfile
eend $?
}