forked from dan/liminix
1
0
Fork 0

mention service dependencies

This commit is contained in:
Daniel Barlow 2023-09-17 16:33:49 +01:00
parent fc84435985
commit 50ea144dec
1 changed files with 6 additions and 0 deletions

View File

@ -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.