Show when the service was started (this relies on the pidfile's last change time)

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-04-13 04:01:18 +00:00
parent 7c584eb8ee
commit f76a4e0823

2
ssm
View File

@@ -527,6 +527,8 @@ info() {
info.item PID "$service_pid" info.item PID "$service_pid"
info.item PIDFile "$service_pidfile" info.item PIDFile "$service_pidfile"
info.item 'Running since' "$(stat -c '%y' "$service_pidfile")"
cgroups && { cgroups && {
info.item Cgroup "$cgroup_home/$service_cgroup_name" info.item Cgroup "$cgroup_home/$service_cgroup_name"
info.item 'Cgroup procs' "${#service_cgroup_procs[@]}" info.item 'Cgroup procs' "${#service_cgroup_procs[@]}"