summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-02-22 13:26:28 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-02-22 23:04:43 +0900
commitb59052be261523721a86caf4ef820e63f03e26a4 (patch)
tree52d546e02c87c245d9c3c29509d454c8d0c9b75b /src/systemctl
parent58fbf167d76e51b0962785ff5efb780def37ad43 (diff)
downloadsystemd-b59052be261523721a86caf4ef820e63f03e26a4.tar.gz
systemctl: show "Until:" field only for service and scope units
Only service and scope units have RuntimeMaxUSec bus property. To suppress the "Until:" field for other unit types, the entry must be initialized with USEC_INFINITY. Fixes #26473.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-show.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c
index 589c91a83b..66ae9800d4 100644
--- a/src/systemctl/systemctl-show.c
+++ b/src/systemctl/systemctl-show.c
@@ -2058,6 +2058,7 @@ static int show_one(
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_set_free_ Set *found_properties = NULL;
_cleanup_(unit_status_info_free) UnitStatusInfo info = {
+ .runtime_max_sec = USEC_INFINITY,
.memory_current = UINT64_MAX,
.memory_high = CGROUP_LIMIT_MAX,
.memory_max = CGROUP_LIMIT_MAX,