hello, becasue I have found in th archive that there is a discusion about the startup scrip of bird, i would like to suggest something like: start-stop-daemon --start --background --exec \ /usr/sbin/bird -- -d -D /var/log/bird that i have made on my debian system. it was hard to find where the "print" messages end when running bird with the default scrip. it's only a suggestion luben -- _________________________________________________________ Luben Karavelov [phone] +359 2 9877088 Network Administrator [PGP] http://www.bgone.net/pgp/luben.asc [ICQ#] 34741625 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Thu, Apr 26, 2001 at 04:12:26AM +0300, Luben Karavelov wrote:
hello, becasue I have found in th archive that there is a discusion about the startup scrip of bird, i would like to suggest something like:
start-stop-daemon --start --background --exec \ /usr/sbin/bird -- -d -D /var/log/bird
that i have made on my debian system. it was hard to find where the "print" messages end when running bird with the default scrip.
I was looking at the debian package this morning and the last suggestion using --make-pidfile doesnt work (I was wondering i didnt check before) but bird forks. I like this approach as its a default way to get the debugging/stats output - Just to mention - You would also need a logrotate cron.d entry ... I'll put together a new package. BTW: Does anyone know for a better check for rtnetlink support than this ? if [ -d /proc -a -z "`cat /proc/ksyms | grep rtnetlink`" ]; then Flo -- Florian Lohoff flo@rfc822.org +49-5201-669912 Why is it called "common sense" when nobody seems to have any?
On Fri, 27 Apr 2001, Florian Lohoff wrote:
BTW: Does anyone know for a better check for rtnetlink support than this ?
if [ -d /proc -a -z "`cat /proc/ksyms | grep rtnetlink`" ]; then
if grep rtnetlink /proc/ksyms > /dev/null 2>&1 then echo "Found rtnetlink in /proc/ksyms." else echo "Either /proc is not available, or it does not contain /proc/ksyms," echo "or there is no permission to read /proc/ksyms, or /proc/ksyms" echo "does not contain rtnetlink." fi Leos
On Fri, Apr 27, 2001 at 01:53:32PM +0200, Florian Lohoff wrote:
I was looking at the debian package this morning and the last suggestion using --make-pidfile doesnt work (I was wondering i didnt check before) but bird forks.
--make-pidfile is for maintenance of daemons than cannot be stopped in their own way. I think that the default stop sequence in the init scrip: echo down | /usr/sbin/birdc >/dev/null is OK unless you have not installed the bird client.
I like this approach as its a default way to get the debugging/stats output - Just to mention - You would also need a logrotate cron.d entry ...
yes, the file must be rotated, but I'm not sure if it have to restart bird or just reconfigure it in order to begin writing in the new log file? restarting is a "bad thing", especially if it is a BGP router, so it must not be done every day.
I'll put together a new package.
BTW: Does anyone know for a better check for rtnetlink support than this ?
if [ -d /proc -a -z "`cat /proc/ksyms | grep rtnetlink`" ]; then
why another way, I think it's OK in this manner.
Flo -- Florian Lohoff flo@rfc822.org +49-5201-669912 Why is it called "common sense" when nobody seems to have any?
luben -- _________________________________________________________ Luben Karavelov [phone] +359 2 9877088 Network Administrator [PGP] http://www.bgone.net/pgp/luben.asc [ICQ#] 34741625 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
participants (3)
-
Florian Lohoff -
Leos Bitto -
Luben Karavelov