23 lines
508 B
Bash
Executable file
23 lines
508 B
Bash
Executable file
#!/bin/ksh
|
|
|
|
daemon="${TRUEPREFIX}/libexec/gromox/delivery"
|
|
daemon_logger="mail.info"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_bg=YES
|
|
|
|
rc_pre() {
|
|
install -d -o _gromox -g _gromox /var/run/gromox
|
|
for _q in mess save timer cache clone insulation; do
|
|
[ -d /var/db/gromox/queue${_q} ] || \
|
|
install -d -o _gromox -g _gromox \
|
|
/var/db/gromox/queue/${_q}
|
|
done
|
|
if [ ! -f /var/db/gromox/queue/token.ipc ]; then
|
|
touch /var/db/gromox/queue/token.ipc
|
|
chown _gromox:_gromox /var/db/gromox/queue/token.ipc
|
|
fi
|
|
}
|
|
|
|
rc_cmd $1
|