Alexander Chemeris
7d9fa86569
Add option to run OpenBTS in a failsafe loop.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
d0c9057711
Shutdown without core dump on a usual SocketError.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
a0f3b96688
Remove Transceiver PID file on OpenBTS exit.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7b3c0d3090
Save transceiver PID to a file and use it to kill old transceivers.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
08bdbb921c
Stupid bug fixed - can't move stack variables initialization to a separate function.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
1965ab4255
Gracefully shutdown OpenBTS on transceiver timeout/error.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
0e6f974b1e
Make functions and variables in OpenBTS.cpp static to avoid their use outside of the file.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7a3d355655
Remove PID file on program exit.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7db74d0cce
Implemented daemon mode, configured from config.
...
I have to do a weird thing - forking during initialization of static variables. I turns out main() is too late for that, because we bind sockets in static variables and when we run second instance, it fails in bind and not in our lockfile checking code. Some other ramifications come out because of our heavy use of global variables. Don't do that in your next project - use global variables only when strictly necessary.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
7be28a2263
Initialize logger right after loading config file.
...
This avoids printing of log messages to the screen on program startup.
2011-06-21 16:46:55 -07:00
Alexander Chemeris
a5c9b9ecbb
Use normal cout and cerr while we have only one thread.
...
COUT() and CERR() macros output current time before text, which looks ugly for the welcome message.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
aec7d8c604
Better comments for previous commit.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
8598e72800
Catch SIGINT, SIGTERM and SIGHUP and shutdown the server gracefully.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
163290b60e
Uncomment real BTS start/stop.
2011-06-21 16:46:54 -07:00
Alexander Chemeris
5ababfad65
A big patch implementing remote CLI.
...
This patch adds ability to connect to OpenBTS CLI with TCP socket and UNIX socket. This is configurable in the config file. To connect to the CLI use apps/OpenBTScli executable, which reads configuration from the same config file.
2011-06-21 16:46:54 -07:00
David A. Burgess
3a8fd4fac1
Another fix to the copyright notice header.
2010-07-16 17:09:09 -07:00
David A. Burgess
fa179f74b7
Change license to AGPLv3.
2010-07-04 15:28:06 -07:00
David A. Burgess
ecbaf97509
Initial import of OpenBTS 2.6 for a new public trunk.
2010-05-23 19:42:16 -07:00