commit 50ea144dece2d0d1162ff3a2daa6118502160ee3 parent fc84435985ca94a7169a7bcca5032c112638718b Author: Daniel Barlow <dan@telent.net> Date: Sun, 17 Sep 2023 16:33:49 +0100 mention service dependencies Diffstat:
| M | doc/configuration.rst | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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.