packages/mail/exim/files/exim.init
Daniel Golle 31d12ead78
exim: add default config and init script, enable lmtp
Ship default configuration /etc/exim/exim.conf as well as
a simple procd init script. Enable building with LMTP for better
integration with dovecot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-08-12 03:11:40 +01:00

19 lines
391 B
Bash

#!/bin/sh /etc/rc.common
START=80
STOP=80
USE_PROCD=1
start_service() {
mkdir -p -m 0755 /var/lib/exim
mkdir -p -m 0755 /var/run/exim
chmod 0750 /var/lib/exim
procd_open_instance
procd_set_param command /usr/sbin/exim
procd_append_param command -C /etc/exim/exim.conf
procd_append_param command -bd -q15m
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}