diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-05-04 16:38:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-05-04 23:35:55 +0200 |
commit | 8bf92e3904cb656d4c2160fc8befebaf21a65492 (patch) | |
tree | 38b708192a69da0dd2e6722250732bbd9bf2177b /guix/packages.scm | |
parent | af5640d1dd18328dbfec5cb11f73224efd47f1aa (diff) | |
download | gnu-guix-8bf92e3904cb656d4c2160fc8befebaf21a65492.tar gnu-guix-8bf92e3904cb656d4c2160fc8befebaf21a65492.tar.gz |
services: herd: Move UI handling to 'guix system'.
This makes (gnu services herd) independent of (guix ui).
* gnu/services/herd.scm (&shepherd-error, &service-not-found-error)
(&action-not-found-error, &action-exception-error)
(&unknown-shepherd-error): New error condition types.
(report-action-error): Remove.
(raise-shepherd-error): New procedure.
(display-message): Do not use 'info' and '_'.
(invoke-action): Use 'raise-shepherd-error' instead of
'report-action-error'. Do not use 'warning'.
(current-services): Do not use 'warning'.
* guix/scripts/system.scm (with-shepherd-error-handling): New macro.
(report-shepherd-error, call-with-service-upgrade-info): New
procedures.
(upgrade-shepherd-services): Use it.
Diffstat (limited to 'guix/packages.scm')
0 files changed, 0 insertions, 0 deletions