Correction : vm_hosted : etc/init.d/tmpfs -> etc/sv/*/run .
[lhc/ateliers.git] / etc / sv / postgrey / run
1 #!/bin/sh -eux
2 exec 2>&1
3 sv=${PWD#/etc/sv/}
4 install -d -m 2710 -o postgrey -g postfix \
5 /run/postgrey
6 exec /usr/bin/chpst \
7 -u "$sv":"$sv" \
8 /usr/sbin/postgrey \
9 --auto-whitelist-clients=5 \
10 --dbdir=/var/lib/postgrey \
11 --delay=65 \
12 --max-age=35 \
13 --privacy \
14 --unix=/run/postgrey/socket