On Fri, Jul 25, 2003 at 11:26:54AM +0300, Maxim Polyakov wrote:
> У кого нибудь есть скриптик запуска spamd (spamassassin) для FreeBsd?
Ну, например:
#!/bin/sh
RETVAL=0
CHROOTDIR=/mnt/AAA
LOADER="chroot ${CHROOTDIR} /bin/su - spamd"
APPLICATION="/usr/local/bin/spamd"
FPID="/var/run/spamd/spamd.pid"
DPARAMS="-d -x -p XXXX -r ${FPID} -i YYY -A ZZZ"
LD_LIBRARY_PATH="/usr/lib:/usr/local/lib"; export LD_LIBRARY_PATH
LC_ALL=C; export LC_ALL
LANG=C; export LANG
case "$1" in
start)
echo -n "Starting SPAMD daemon..." ${LOADER} ${APPLICATION} ${DPARAMS}
echo -n "Shutting down SPAMD daemon..." kill `cat ${CHROOTDIR}${FPID}`
echo -n "Restarting SPAMD daemon..." kill `cat ${CHROOTDIR}${FPID}` sleep 1 ${LOADER} ${APPLICATION} ${DPARAMS}
exit $RETVAL
:-)))
ANDY Получено Fri Jul 25 08:43:50 2003
Этот архив был сгенерирован hypermail 2.1.8 : Fri 24 Apr 2015 - 16:12:40 MSK