Skip to content

Commit

Permalink
behave: Decouple obs-* services from obs-api-support.target
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Jan 15, 2024
1 parent 6b94605 commit de26a24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions behave/container-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit de26a24

Please sign in to comment.