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:
parent
28a47059b7
commit
9b32753f26
|
@ -384,7 +384,7 @@ in
|
|||
};
|
||||
systemd.services.erpnext-queue-short = {
|
||||
enable = true;
|
||||
before = [ "erpnext-web.service" ];
|
||||
after = [ "erpnext-web.service" ];
|
||||
wantedBy = [ "erpnext-web.service" ];
|
||||
partOf = [ "erpnext-web.service" ];
|
||||
description = "ERPNext short queue server";
|
||||
|
@ -400,7 +400,7 @@ in
|
|||
};
|
||||
systemd.services.erpnext-queue-default = {
|
||||
enable = true;
|
||||
before = [ "erpnext-web.service" ];
|
||||
after = [ "erpnext-web.service" ];
|
||||
wantedBy = [ "erpnext-web.service" ];
|
||||
partOf = [ "erpnext-web.service" ];
|
||||
description = "ERPNext default queue server";
|
||||
|
@ -416,7 +416,7 @@ in
|
|||
};
|
||||
systemd.services.erpnext-queue-long = {
|
||||
enable = true;
|
||||
before = [ "erpnext-web.service" ];
|
||||
after = [ "erpnext-web.service" ];
|
||||
wantedBy = [ "erpnext-web.service" ];
|
||||
partOf = [ "erpnext-web.service" ];
|
||||
description = "ERPNext long queue server";
|
||||
|
@ -432,7 +432,7 @@ in
|
|||
};
|
||||
systemd.services.erpnext-scheduler = {
|
||||
enable = true;
|
||||
before = [ "erpnext-web.service" ];
|
||||
after = [ "erpnext-web.service" ];
|
||||
wantedBy = [ "erpnext-web.service" ];
|
||||
partOf = [ "erpnext-web.service" ];
|
||||
description = "ERPNext scheduler server";
|
||||
|
|
Loading…
Reference in a new issue