/nix/boost/format/

19da2c7fbb7e121ffec9cbd8ea12cc92ea70a0'>commitdiff
path: root/gnu/services/herd.scm
AgeCommit message (Collapse)Author
2019-01-17services: herd: Allow to pass arguments to start-service.Mathieu Othacehe
* gnu/services/herd.scm (start-service)[arguments]: New optional argument.
2018-09-26guix system: Load all services on reconfigure, not just stopped ones.Carlo Zancanaro
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>
2018-07-13services: mcron: Add 'schedule' action.Ludovic Courtès
Inspired by <https://lists.gnu.org/archive/html/help-guix/2018-07/msg00035.html>. * gnu/services/mcron.scm (shepherd-schedule-action): New procedure. (mcron-shepherd-services): Add 'actions' field. * gnu/tests/base.scm (run-mcron-test)["schedule action"]: New test. * doc/guix.texi (Scheduled Job Execution): Mention 'herd schedule'.
2018-01-21services: herd: 'with-shepherd' no longer leaves an open connection.Ludovic Courtès
* gnu/services/herd.scm (with-shepherd): Use 'dynamic-wind' and close CONNECTION at the end.
2017-08-23services: herd: Actions return a list of results.Ludovic Courtès
Fixes a regression introduced in 0642838b2e9ab2bd988dccb64b9e1130006347bf. * gnu/services/herd.scm (invoke-action): Explain that we get a list of results. (current-services): Expect a list of result and use the first one. (unload-service, %load-file, eval-there): Likewise.
2017-08-08services: herd: Add a stop-service procedure.Christopher Baines
* gnu/services/herd.scm (stop-service): New procedure.
2017-08-08services: herd: Fix matching ok responses from shepherd service.Christopher Baines
Previously the match expression case for a successful response (where error is #f) required that the result component contained a list with a single element. As far as I see when looking at the responses from the shepherd, this is not normally the case. Therefore, to avoid treating successful responses as errors, make the match requirement more permissive, accepting any value. * gnu/services/herd.scm (invoke-action): Change match condition for ok responses.
2017-05-03services: herd: Make %shepherd-socket-file a parameter and export it.Mathieu Othacehe
* gnu/services/herd.scm (%shepherd-socket-file): Make it an exported parameter. (open-connection): Adapt.