like using systemctl is-active <servicename>
gives is if service is active or failed then is it possible to get the uptime or downtime of the systemd service all using systemctl ?
time systemctl status kdm|cat
* kdm.service - LSB: X display manager for KDE
Loaded: loaded (/etc/init.d/kdm; generated; vendor preset: enabled)
Active: active (exited) since Wed 2017-06-21 12:03:26 CEST; 1h 42min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/kdm.service
is it possible to get the 1h 42min using systemctl
Using systemctl's property WatchdogTimestamp
blr8-100-208-Vin:~ # systemctl show novell-nss --property WatchdogTimestamp
WatchdogTimestamp=Tue 2020-11-24 17:30:20 IST