guix system: Load all services on reconfigure, not just stopped ones.
authorCarlo Zancanaro <carlo@zancanaro.id.au>
Sun, 26 Aug 2018 11:54:14 +0000 (21:54 +1000)
committerLudovic Courtès <ludo@gnu.org>
Wed, 26 Sep 2018 21:40:36 +0000 (23:40 +0200)
commit4245ddcbc9f935804c17c97872b90ec1050c2d75
treea6b02dd3bb8065fdd64fa26126d2949da20b912f
parent9bd85a785f47d039b027de854b78b9ded0892e02
guix system: Load all services on reconfigure, not just stopped ones.

This uses the 'replacement' service slot introduced in the Shepherd
version 0.5.0.

* gnu/services/shepherd.scm (shepherd-service-upgrade): Return a list of
  services that need to be restarted to complete their upgrade.
* guix/scripts/system.scm (call-with-service-upgrade-info): Rename an internal
  variable to reflect the change to shepherd-service-upgrade.
  (upgrade-shepherd-services): Call 'load-services/safe' instead of
  'load-services'.  Print a message about services that need to be
  manually restarted.
* gnu/services/herd.scm (load-services/safe): New procedure.
* doc/guix.texi (Invoking guix system): Document the new behaviour.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
doc/guix.texi
gnu/services/herd.scm
gnu/services/shepherd.scm
guix/scripts/system.scm