[Git][qa/jenkins.debian.net][master] openqa on osuosl3: systemctl disable: add --now

Holger Levsen (@holger) gitlab at salsa.debian.org
Fri Jul 28 22:15:49 BST 2023



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
3713af7d by Philip Hands at 2023-07-28T23:15:28+02:00
openqa on osuosl3: systemctl disable: add --now

without this, the service is disabled, but allowed to continue running

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- update_jdn.sh


Changes:

=====================================
update_jdn.sh
=====================================
@@ -751,13 +751,13 @@ if ! $UP2DATE ; then
 						sudo adduser jenkins docker
 						# openqa does not use slirpvde: reset its status and disable
 						sudo systemctl reset-failed openqa-slirpvde.service
-						sudo systemctl disable openqa-slirpvde.service
+						sudo systemctl disable --now openqa-slirpvde.service
 						OPENQA_WORKERS_TO_RUN=5
 						# disable any excess autostart instances, and all non-autostart workers
 						for id in $(systemctl show openqa-worker\*@\*.service --property=Id | sed 's/^Id=//'); do
 							autostart_instance=$(sed -nE 's/^.*auto-restart[@]([0-9]+).*$/\1/p' <<<$id)
 							if [ -z "$autostart_instance" ] || [ "$autostart_instance" -gt "$OPENQA_WORKERS_TO_RUN" ]; then
-								sudo systemctl disable $id
+								sudo systemctl disable --now $id
 							fi
 						done
 						# if some required instances are not yet enabled, enable them



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3713af7dbeec65a5a99df1c49b213452ee9d0e42

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3713af7dbeec65a5a99df1c49b213452ee9d0e42
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20230728/8512bccf/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list