services: unattended-upgrade: Exit with non-zero upon failure. Until now, the service would always exit with 0, which makes failures harder to distinguish in the output of ‘herd status’, for instance. * gnu/services/admin.scm (unattended-upgrade-shepherd-services)[code]: Call ‘exit’ after ‘report-invoke-error’. Change-Id: Idfc74a48a6a798e813db96d5770a897595b27240
1 files changed, 2 insertions(+), 1 deletions(-) M gnu/services/admin.scm
M gnu/services/admin.scm => gnu/services/admin.scm +2 -1
@@ 644,7 644,8 @@ which lets you search for packages that provide a given file.") (format #t "starting upgrade...~%") (guard (c ((invoke-error? c) (report-invoke-error c))) (report-invoke-error c) (exit 1))) (apply invoke #$(file-append guix "/bin/guix") "time-machine" "-C" #$channels "--" "system" "reconfigure" #$arguments)