mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-06 06:46:14 +01:00
behave: Decouple obs-* services from obs-api-support.target
This commit is contained in:
parent
6b94605786
commit
de26a24f68
@ -114,8 +114,8 @@ chown -R wwwrun:www /srv/www/obs/api/tmp/
|
|||||||
systemctl enable apache2
|
systemctl enable apache2
|
||||||
systemctl enable mysql
|
systemctl enable mysql
|
||||||
# starting obs-api-support.target incl. all dependencies is expensive
|
# starting obs-api-support.target incl. all dependencies is expensive
|
||||||
# let's start it only when needed
|
# let's mask it and start individual services as needed
|
||||||
# systemctl enable obs-api-support.target
|
systemctl mask obs-api-support.target
|
||||||
|
|
||||||
# OBS backend
|
# OBS backend
|
||||||
systemctl enable obssrcserver
|
systemctl enable obssrcserver
|
||||||
@ -131,8 +131,8 @@ systemctl enable obsservice
|
|||||||
#systemctl enable obsdeltastore
|
#systemctl enable obsdeltastore
|
||||||
#systemctl enable obsservicedispatch
|
#systemctl enable obsservicedispatch
|
||||||
|
|
||||||
# modify WantedBy target, otherwise the service won't start even if it is enabled
|
# decouple obs-* services from obs-api-support.target
|
||||||
sed -i 's@^WantedBy *=.*@WantedBy = default.target@' /usr/lib/systemd/system/obs-delayedjob-queue-default.service
|
sed -i '/^BindsTo *=.*/d; s/^WantedBy *=.*/WantedBy = default.target/' /usr/lib/systemd/system/obs-*
|
||||||
|
|
||||||
# needed (not only) for generating diffs in requests
|
# needed (not only) for generating diffs in requests
|
||||||
systemctl enable obs-delayedjob-queue-default
|
systemctl enable obs-delayedjob-queue-default
|
||||||
|
Loading…
Reference in New Issue
Block a user