civodul pushed a commit to branch main
in repository shepherd.

commit 01b7b218f7cea6ed7ad43711ff4a4919a459e023
Author: Ludovic Courtès <[email protected]>
AuthorDate: Wed Apr 16 10:39:35 2025 +0200

    herd: Display exit statuses in chronological order.
    
    This is consistent with the way other events are displayed (recent runs,
    recent messages).
    
    * modules/shepherd/scripts/herd.scm (display-service-status): Call
    reverse for ‘live-service-process-exit-statuses’.
---
 modules/shepherd/scripts/herd.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/shepherd/scripts/herd.scm 
b/modules/shepherd/scripts/herd.scm
index c441053..eb4db84 100644
--- a/modules/shepherd/scripts/herd.scm
+++ b/modules/shepherd/scripts/herd.scm
@@ -543,8 +543,8 @@ to upgrade).~%"))))
     ((time _ ...)
      (format #t (highlight/warn (l10n "  Last respawned on ~a.~%"))
              (time->string time))
-     (match (at-most log-history-size
-                     (live-service-process-exit-statuses service))
+     (match (reverse (at-most log-history-size
+                              (live-service-process-exit-statuses service)))
        (((statuses . times) ...)
         ;; Since SERVICE was respawned, show a log of exit times and statuses.
         (format #t (l10n "  Latest exit:~%"

Reply via email to