Project

General

Profile

Feature #4609

VTY commands for uptime, PID and for terminating process

Added by laforge about 1 year ago. Updated 8 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
libosmocore
Target version:
-
Start date:
06/10/2020
Due date:
% Done:

100%

Spec Reference:

Description

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.

Associated revisions

Revision d243c2ad (diff)
Added by osmith 11 days ago

vty: add "show uptime"

Related: OS#4609
Change-Id: Ic7d9d5d3c8a9abd06a7e626aed7679f68406040c

Revision 0c78bc62 (diff)
Added by osmith 11 days ago

vty: add "show pid"

Related: OS#4609
Change-Id: Ib636050afc1eed134f450f2f1cdd3b51153b0160

Revision 8a482fd0 (diff)
Added by osmith 11 days ago

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
path.

Closes: OS#4609
Change-Id: I3596a35b0f4a24e49484ec3f24a98e4d4f583e1e

Revision 95a03e54 (diff)
Added by osmith 7 days ago

vty: show uptime: use timespecsub

Related: OS#4609
Change-Id: If94795b3cd74040c49bdcbed8c410bf6e950afff

History

#1 Updated by laforge 6 months ago

  • Assignee changed from laforge to osmith

#2 Updated by laforge 4 months ago

  • Category set to libosmocore

#3 Updated by laforge 24 days ago

  • Priority changed from Low to Normal

#4 Updated by osmith 14 days ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90

#5 Updated by osmith 8 days ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)