becentralserver patch for 1.3
Hi Mitch,
Attached is a patch that adds command line functionality to turn being a
central server off.
This is required in circumstances where 'BECENTRALSERVER=1' is defined
in the becaon.conf file but you desire to start a new instance of the
beacon without being a central server.
To stop a beacon process from becoming a central server use the 'no'
form of the usual command line option '--nobecentralserver'.
cheers,
-Greg
--
Dr. Greg Wickham GrangeNet Network Operations Manager
Phone: +61 2 6222 3552 GrangeNet
Mob: +61 4 0785 4566 CSIRO, Building 9, Banks St
Email: greg.wickham@grangenet.net Yaralumla ACT 2600
--- ./beacon-1.3/src/beacon.in.orig 2005-12-08 09:09:19.000000000 +1100
+++ ./beacon-1.3/src/beacon.in 2005-12-08 09:30:57.000000000 +1100
@@ -358,7 +358,7 @@
# Using: abcdefghijklmnoprstvqyz
# Not Using: qux
GetOptions( 'background|a' => \$background,
- 'becentralserver|b' => \$becentralserver,
+ 'becentralserver|b!' => \$becentralserver,
'centralservername|c=s' => \$CENTRALSERVERNAME,
'debug|d=s' => \$DEBUG,
'erasehistory|e' => \$erasehistory,