blob: 468b146cf9c140a88e5a6eaca8ed593c10538319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
#
# ensure that the trigger fifo exists and we own it, then start up
# nullmailer-send with logging and detach
trigger="@VARBASE@/spool/nullmailer/trigger"
if [ ! -p ${trigger} -o ! -O ${trigger} -o ! -G ${trigger} ]; then
rm -f ${trigger}
mkfifo -m 0600 ${trigger}
fi
@PREFIX@/libexec/nullmailer/nullmailer-send 2>&1 | logger -t nullmailer -p mail.info &
|