From 1881e46cb9b7006ddaa66943bc95444766817abb Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 16 Jan 2014 14:06:45 +0100 Subject: sysmobts-mgr: Parse the daemonize option Parse the daemonize option and daemonize after the full set-up of the code. --- src/osmo-bts-sysmo/misc/sysmobts_mgr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/osmo-bts-sysmo') diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c index d94a24fd..b5bbc311 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c @@ -68,10 +68,11 @@ static void hours_timer_cb(void *unused) static void print_help(void) { - printf("sysmobts-mgr [-ns] [-d cat]\n"); + printf("sysmobts-mgr [-nsD] [-d cat]\n"); printf(" -n Do not write to EEPROM\n"); printf(" -s Disable color\n"); printf(" -d CAT enable debugging\n"); + printf(" -D daemonize\n"); } static int parse_options(int argc, char **argv) @@ -92,6 +93,9 @@ static int parse_options(int argc, char **argv) case 'd': log_parse_category_mask(osmo_stderr_target, optarg); break; + case 'D': + daemonize = 1; + break; default: return -1; } -- cgit v1.2.3