|
|
|
@ -14,7 +14,7 @@ |
|
|
|
postgrey_log_complevel="9" |
|
|
|
postgrey_log_complevel="9" |
|
|
|
|
|
|
|
|
|
|
|
%common |
|
|
|
%common |
|
|
|
postgrey_logfile="@l_prefix@/var/postgrey/postgrey.pid" |
|
|
|
postgrey_logfile="@l_prefix@/var/postgrey/postgrey.log" |
|
|
|
postgrey_pidfile="@l_prefix@/var/postgrey/postgrey.pid" |
|
|
|
postgrey_pidfile="@l_prefix@/var/postgrey/postgrey.pid" |
|
|
|
postgrey_socket="@l_prefix@/var/postgrey/postgrey.socket" |
|
|
|
postgrey_socket="@l_prefix@/var/postgrey/postgrey.socket" |
|
|
|
postgrey_dbdir="@l_prefix@/var/postgrey" |
|
|
|
postgrey_dbdir="@l_prefix@/var/postgrey" |
|
|
|
@ -25,11 +25,13 @@ |
|
|
|
%status -u @l_rusr@ -o |
|
|
|
%status -u @l_rusr@ -o |
|
|
|
postgrey_usable="unknown" |
|
|
|
postgrey_usable="unknown" |
|
|
|
postgrey_active="no" |
|
|
|
postgrey_active="no" |
|
|
|
|
|
|
|
rcService postgrey enable yes && \ |
|
|
|
|
|
|
|
postgrey_signal 0 && postgrey_active="yes" |
|
|
|
echo "postgrey_enable=\"$postgrey_enable\"" |
|
|
|
echo "postgrey_enable=\"$postgrey_enable\"" |
|
|
|
echo "postgrey_usable=\"$postgrey_usable\"" |
|
|
|
echo "postgrey_usable=\"$postgrey_usable\"" |
|
|
|
echo "postgrey_active=\"$postgrey_active\"" |
|
|
|
echo "postgrey_active=\"$postgrey_active\"" |
|
|
|
|
|
|
|
|
|
|
|
%start -u @l_susr@ |
|
|
|
%start -u @l_rusr@ |
|
|
|
rcService postgrey enable yes || exit 0 |
|
|
|
rcService postgrey enable yes || exit 0 |
|
|
|
rcService postgrey active yes && exit 0 |
|
|
|
rcService postgrey active yes && exit 0 |
|
|
|
@l_prefix@/sbin/postgrey \ |
|
|
|
@l_prefix@/sbin/postgrey \ |
|
|
|
@ -41,13 +43,13 @@ |
|
|
|
--delay=$postgrey_delay \ |
|
|
|
--delay=$postgrey_delay \ |
|
|
|
--max-age=$postgrey_maxage |
|
|
|
--max-age=$postgrey_maxage |
|
|
|
|
|
|
|
|
|
|
|
%stop -u @l_susr@ |
|
|
|
%stop -u @l_rusr@ |
|
|
|
rcService postgrey enable yes || exit 0 |
|
|
|
rcService postgrey enable yes || exit 0 |
|
|
|
rcService postgrey active no && exit 0 |
|
|
|
rcService postgrey active no && exit 0 |
|
|
|
postgrey_signal TERM |
|
|
|
postgrey_signal TERM |
|
|
|
rm -f $postgrey_pidfile 2>/dev/null || true |
|
|
|
rm -f $postgrey_pidfile 2>/dev/null || true |
|
|
|
|
|
|
|
|
|
|
|
%restart -u @l_susr@ |
|
|
|
%restart -u @l_rusr@ |
|
|
|
rcService postgrey enable yes || exit 0 |
|
|
|
rcService postgrey enable yes || exit 0 |
|
|
|
rcService postgrey active no && exit 0 |
|
|
|
rcService postgrey active no && exit 0 |
|
|
|
rc postgrey stop |
|
|
|
rc postgrey stop |
|
|
|
|