Alex Sassmannshausen <[email protected]> skribis:
> * modules/dmd/service.scm (deregister-services): New procedure.
> (dmd-service): Add new action: unload.
> * dmd.texi (The 'dmd' and 'unknown' services): Document 'unload'.
> * tests/basic.sh: Add 'unload' tests (stop single service & 'all').
Applied with minor changes.
> +@item unload @var{service-name}
> +Attempt to remove the service identified by @var{service-name}.
> +@command{dmd} will first stop the service, if necessary, and then
> +remove it from the list of registered services. Any services
> +depending upon @var{service-name} will be stopped as part of this
> +process. If @var{service-name} simply does not exist, output a
I added a newline before “If” so that the main info is more easily
visible, and the paragraph is less intimidating. ;-)
> +$deco unload dmd test
> +
> +$deco status dmd | grep "Stopped: (test-2)"
> +
> +$deco unload dmd all
> +
> +$deco status dmd | grep "Stopped: ()"
I added a test to make sure we get “Started: (dmd)”.
Thanks!
Ludo’.