Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add service files to restart worker after config changes without…
… interrupting running jobs * Not tested at all; just to see how such a change would look like * See https://progress.opensuse.org/issues/80910 --- * We could actually also watch for a packaged file so it would also apply to package updates. * Then we could also get rid of `OPENQA_WORKER_TERMINATE_AFTER_JOBS_DONE=1` in the auto-restart service file.
- Loading branch information
Showing
4 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# see https://www.freedesktop.org/software/systemd/man/systemd.path.html#PathExists= | ||
|
||
[Path] | ||
PathChanged=/etc/openqa/workers.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=Restarts openQA Worker #%i as soon as possible without interrupting jobs | ||
|
||
[Service] | ||
Type=oneshot | ||
User=_openqa-worker | ||
ExecStart=systemctl kill --signal SIGHUP openqa-worker-auto-restart@%i.service | ||
Slice=openqa-worker.slice |