diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-29 20:42:14 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-29 20:42:14 +0200 |
commit | b84968418172040f12dc150d770f9b06d6df335d (patch) | |
tree | d7cd7017d9ee345aa7d5660dcf82d0c451dd0c7d /src/common/abis.c | |
parent | 1eb4d4893c3de16692ae3e9c3b4c8a09da490ad8 (diff) |
deactivate RF + exit when the Abis link is gone
The idea is that the BTS process is re-spawned from init/upstart/systemd
Diffstat (limited to 'src/common/abis.c')
-rw-r--r-- | src/common/abis.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/abis.c b/src/common/abis.c index 79a9d4d0..c1e1c4f3 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -513,5 +513,13 @@ void abis_close(struct ipabis_link *link) if (osmo_timer_pending(&link->timer)) osmo_timer_del(&link->timer); + + /* for now, we simply terminate the program and re-spawn */ + if (link->bts) + bts_shutdown(link->bts); + else if (link->trx) + bts_shutdown(link->trx->bts); + else + exit(43); } |