VTY commands for uptime, PID and for terminating process
In some environments it would be useful to get the "uptime" of the osmocom program (i.e. when was it started, as well as its PID and to have a command to exit() and hence trigger a restart/respawn.
vty: add "show uptime"
vty: add "show pid"
vty: add "shutdown"
Kill programs with SIGTERM with the new vty command, as it would happen
with "systemctl stop".
I've considered running the select shutdown logic too in order to ensure
that pending OSMO_FD_WRITE requests are serviced. But as noted in
review, it's better to ensure that the regular SIGTERM code path works
as expected and call that instead of introducing an alternative code
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Applied in changeset libosmocore|8a482fd0a85cba32e8cfb484e3a3f4cbaf4eb894.