I offer to add runtime switching of sync/async mode to init.d/metalog opts="${opts} async sync" async() { ebegin "Switching to async mode" kill -USR2 $(</var/run/metalog.pid) eend $? } sync() { ebegin "Switching to sync mode" kill -USR1 $(</var/run/metalog.pid) eend $? }
that support is already in metalog ... the functions are 'buffer' and 'unbuffer'
can you write an example how i can use this functions from command line or point me to some doc about this?
ok just has emerged -u metalog but found that signals not conformed to the manual README.gz >> If you temporarely want to switch to the asynchronous mode, send an USR2 signal to the process. Something like : kill -USR2 $(cat /var/run/metalog.pid) should do the trick. Later, if you want to watch activity in real-time (like a good old "tail -f" on a log file), you can disable buffering. Just send an USR1 signal to the "MASTER" process. You can always re-enable buffering afterwards.
swapped USR1 for USR2