Make sure required services are started in nix modules

This commit is contained in:
clerie 2024-03-24 14:42:46 +01:00
parent 3197e4f8d3
commit f707f21237
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ in {
systemd.services.fieldpoc = { systemd.services.fieldpoc = {
description = "Fieldpoc daemon"; description = "Fieldpoc daemon";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
requires = [ "network-online.target" "yate.service" ];
after = [ "network-online.target" "yate.service" ]; after = [ "network-online.target" "yate.service" ];
serviceConfig = { serviceConfig = {

View File

@ -21,6 +21,7 @@ in {
systemd.services.yate = { systemd.services.yate = {
description = "YATE Telephony Server"; description = "YATE Telephony Server";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
requires = [ "network-online.target" "postgresql.service" ];
after = [ "network-online.target" "postgresql.service" ]; after = [ "network-online.target" "postgresql.service" ];
environment = { PWLIB_ASSERT_ACTION = "C"; }; environment = { PWLIB_ASSERT_ACTION = "C"; };