From de26a24f680c5608a344f7bd8fb3b64b9466a9c5 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 15 Jan 2024 10:02:56 +0100 Subject: [PATCH] behave: Decouple obs-* services from obs-api-support.target --- behave/container-setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/behave/container-setup.sh b/behave/container-setup.sh index b51320c551..d01f32133f 100644 --- a/behave/container-setup.sh +++ b/behave/container-setup.sh @@ -114,8 +114,8 @@ chown -R wwwrun:www /srv/www/obs/api/tmp/ systemctl enable apache2 systemctl enable mysql # starting obs-api-support.target incl. all dependencies is expensive -# let's start it only when needed -# systemctl enable obs-api-support.target +# let's mask it and start individual services as needed +systemctl mask obs-api-support.target # OBS backend systemctl enable obssrcserver @@ -131,8 +131,8 @@ systemctl enable obsservice #systemctl enable obsdeltastore #systemctl enable obsservicedispatch -# modify WantedBy target, otherwise the service won't start even if it is enabled -sed -i 's@^WantedBy *=.*@WantedBy = default.target@' /usr/lib/systemd/system/obs-delayedjob-queue-default.service +# decouple obs-* services from obs-api-support.target +sed -i '/^BindsTo *=.*/d; s/^WantedBy *=.*/WantedBy = default.target/' /usr/lib/systemd/system/obs-* # needed (not only) for generating diffs in requests systemctl enable obs-delayedjob-queue-default