Slava Dubrovskiy
Thu, 26 Nov 2009 04:43:40 -0800
26.11.2009 09:21, Paolo Lucente пишет: > Hi Slava, > > On Wed, Nov 25, 2009 at 09:04:24PM +0200, Slava Dubrovskiy wrote: > > >> Seems when I make kill INT PID_OF_CORE_PROCESS it down, but plugins do >> not write to database. I see delay before off for plugins, but not see >> that they change command line to "DB writer". And not see data for period. >> >> Can you confirm that bug? >> > You should send a SIGINT to the plugins you want to write to the database, > not only to the core process (just wondering if it's written this way in > any part of the documentation). A 'killall INT pmacctd' should do it; or > if you need better granularity use the 'pidfile' directive to be able to > retrieve the PID for the plugins aswell. > I use "killall INT nfacctd" and "killall -s INT nfacctd" and by script
PIDFILE=/var/run/nfacctd.pid
NAME=nfacctd
LOCKFILE=/var/lock/subsys/nfacctd
RETVAL=0
for P in $(ls /var/run/$NAME* 2>/dev/null); do
N=$(echo "$P" | sed "s/\/var\/run\/$NAME\.pid//g")
stop_daemon --displayname "$NAME$N" --pidfile "$P" --lockfile
"$LOCKFILE" --expect-user root -2 -- nfacctd
RETVAL=$?
done
Not work. But previos version (rc2) working good.
--
WBR,
Dubrovskiy Vyacheslav
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists