From 0d13467f12edacb9d443b18a4b841a2a92a49f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Tue, 3 Sep 2024 09:37:58 +0200 Subject: [PATCH] fix: set correct Systemd Targets to make sure that validation services only start after NFS shares are available --- .../local/lib/systemd/system/validation_daemon_@.service.j2 | 4 ++-- .../local/lib/systemd/system/validation_daemon_any.socket.j2 | 2 +- .../lib/systemd/system/validation_daemon_any@.service.j2 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 b/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 index 0320af2..c1a21e7 100644 --- a/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 +++ b/templates/usr/local/lib/systemd/system/validation_daemon_@.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Validation Tool Daemon (%i) -After=network.target +After=remote-fs.target [Service] ExecStart=/usr/local/bin/validate_workflow.sh \ @@ -42,4 +42,4 @@ Type=simple #SystemCallErrorNumber=1337 [Install] -WantedBy=multi-user.target +WantedBy=default.target diff --git a/templates/usr/local/lib/systemd/system/validation_daemon_any.socket.j2 b/templates/usr/local/lib/systemd/system/validation_daemon_any.socket.j2 index eae623e..b8cd993 100644 --- a/templates/usr/local/lib/systemd/system/validation_daemon_any.socket.j2 +++ b/templates/usr/local/lib/systemd/system/validation_daemon_any.socket.j2 @@ -9,4 +9,4 @@ Accept=yes ReceiveBuffer=4G [Install] -WantedBy=multi-user.target +WantedBy=default.target diff --git a/templates/usr/local/lib/systemd/system/validation_daemon_any@.service.j2 b/templates/usr/local/lib/systemd/system/validation_daemon_any@.service.j2 index 8a765ff..7049206 100644 --- a/templates/usr/local/lib/systemd/system/validation_daemon_any@.service.j2 +++ b/templates/usr/local/lib/systemd/system/validation_daemon_any@.service.j2 @@ -38,4 +38,4 @@ Type=simple #SystemCallErrorNumber=1337 [Install] -WantedBy=multi-user.target +WantedBy=default.target -- GitLab