From 50ea144dece2d0d1162ff3a2daa6118502160ee3 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 17 Sep 2023 16:33:49 +0100 Subject: [PATCH] mention service dependencies --- doc/configuration.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/configuration.rst b/doc/configuration.rst index 69d629c..5888a48 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -113,6 +113,8 @@ the `oneshot` or `longrun` functions: config.services.cowsayd = pkgs.liminix.services.longrun { name = "cowsayd"; run = "${pkgs.cowsayd}/bin/cowsayd --port 3001 --breed hereford"; + # don't start this until the lan interface is ready + dependencies = [ config.services.lan ]; } @@ -133,3 +135,7 @@ the `oneshot` or `longrun` functions: echo 0 > /sys/class/gpio/gpio17/value ''; } + +Services may have dependencies: as you see above in the ``cowsayd`` +example, it depends on some service called ``config.services.lan``, +meaning that it won't be started until that other service is up.