coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 302 forks source link

fleetctl: service uptime for list-units #1669

Open dongsupark opened 8 years ago

dongsupark commented 8 years ago

Allow fleetctl list-units to retrieve per-unit uptime from systemd, for example:

localhost # ./fleet/fleetctl list-units
UNIT MACHINE ACTIVE SUB UPTIME
world.service 06ecd4f7.../192.168.122.30 active running 2015-07-06 07:38:38 AM UTC, Since 11m39s
world2.service 1d3430ef.../192.168.122.31 active running 2015-07-06 07:48:24 AM UTC, Since 1m54s
world_glob.service 06ecd4f7.../192.168.122.30 active running 2015-07-06 07:48:00 AM UTC, Since 2m18s
world_glob.service 1d3430ef.../192.168.122.31 active running 2015-07-06 07:47:59 AM UTC, Since 2m18s

What's changed since #1293:

Fixes https://github.com/coreos/fleet/issues/1128 Supersedes https://github.com/coreos/fleet/pull/1293 /cc @wuqixuan

jonboulle commented 8 years ago

I'm not sure about this one - please hold off until I can give it a little more thought

dongsupark commented 8 years ago

@jonboulle I see.