module: fix systemd service dependency

When started before erpnext-web, the scheduler and queues do not start
successfully, because the common_site_config.json is still missing.
We can not schedule or queue anything yet, so starting after erpnext-web
is fine.
This fixes deployment via deploy-rs
This commit is contained in:
teutat3s 2023-07-18 01:26:33 +02:00
parent 28a47059b7
commit 9b32753f26
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -384,7 +384,7 @@ in
}; };
systemd.services.erpnext-queue-short = { systemd.services.erpnext-queue-short = {
enable = true; enable = true;
before = [ "erpnext-web.service" ]; after = [ "erpnext-web.service" ];
wantedBy = [ "erpnext-web.service" ]; wantedBy = [ "erpnext-web.service" ];
partOf = [ "erpnext-web.service" ]; partOf = [ "erpnext-web.service" ];
description = "ERPNext short queue server"; description = "ERPNext short queue server";
@ -400,7 +400,7 @@ in
}; };
systemd.services.erpnext-queue-default = { systemd.services.erpnext-queue-default = {
enable = true; enable = true;
before = [ "erpnext-web.service" ]; after = [ "erpnext-web.service" ];
wantedBy = [ "erpnext-web.service" ]; wantedBy = [ "erpnext-web.service" ];
partOf = [ "erpnext-web.service" ]; partOf = [ "erpnext-web.service" ];
description = "ERPNext default queue server"; description = "ERPNext default queue server";
@ -416,7 +416,7 @@ in
}; };
systemd.services.erpnext-queue-long = { systemd.services.erpnext-queue-long = {
enable = true; enable = true;
before = [ "erpnext-web.service" ]; after = [ "erpnext-web.service" ];
wantedBy = [ "erpnext-web.service" ]; wantedBy = [ "erpnext-web.service" ];
partOf = [ "erpnext-web.service" ]; partOf = [ "erpnext-web.service" ];
description = "ERPNext long queue server"; description = "ERPNext long queue server";
@ -432,7 +432,7 @@ in
}; };
systemd.services.erpnext-scheduler = { systemd.services.erpnext-scheduler = {
enable = true; enable = true;
before = [ "erpnext-web.service" ]; after = [ "erpnext-web.service" ];
wantedBy = [ "erpnext-web.service" ]; wantedBy = [ "erpnext-web.service" ];
partOf = [ "erpnext-web.service" ]; partOf = [ "erpnext-web.service" ];
description = "ERPNext scheduler server"; description = "ERPNext scheduler server";