diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-11-10 12:53:22 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-11-10 12:53:22 +0100 |
commit | b89a5fa55d712a257ee17bbaed41cdb1ee8d7f75 (patch) | |
tree | e167b153774735c0a197a1aa6898288899bda902 | |
parent | 9f0002b52bdc560587744e17243440951273a153 (diff) |
bts: In case the line isn't created do not exit with code 1
The service file will prevent a re-launch of the sysmobts.service
in case the main process exits with '1'. In case the ethernet is
not available yet the routine would fail and the sysmobts process
will not be restarted.
unable to connect/bind socket: Network is unreachable
<000f> input/ipaccess.c:885 cannot open OML BTS link: Network is unreachable
unable to connect to BSC
root@sysmobts-v2:~# echo $?
2
Fixes: SYS#736
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index 51619ee9..90df03bf 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -387,7 +387,7 @@ int main(int argc, char **argv) line = abis_open(bts, btsb->bsc_oml_host, "sysmoBTS"); if (!line) { fprintf(stderr, "unable to connect to BSC\n"); - exit(1); + exit(2); } if (daemonize) { |