Modification : vm_hosted : insserv -> runit .
[lhc/ateliers.git] / etc / sv / postgrey / run
1 #!/bin/sh -eux
2 exec 2>&1
3 sv=${PWD#/etc/sv/}
4 exec /usr/bin/chpst \
5 -u "$sv":"$sv" \
6 /usr/sbin/postgrey \
7 --auto-whitelist-clients=5 \
8 --dbdir=/var/lib/postgrey \
9 --delay=65 \
10 --max-age=35 \
11 --privacy \
12 --unix=/run/postgrey/socket