Skip to content

Commit

Permalink
worker: add support for service reloading
Browse files Browse the repository at this point in the history
This requires python3-kobo-worker 0.36.1 or newer.

Related: release-engineering/kobo#245
  • Loading branch information
lzaoral committed May 3, 2024
1 parent d5ef190 commit 62742b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ report bugs and feature requests on GitHub using the above URL.
- `koji`
- `python3-kobo-client`
- `python3-kobo-rpmlib`
- `python3-kobo-worker >= 0.32.0`
- `python3-kobo-worker >= 0.36.1`

### client:
- `koji`
Expand Down
2 changes: 1 addition & 1 deletion osh.spec
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Requires: file
Requires: koji
Requires: python3-kobo-client
Requires: python3-kobo-rpmlib
Requires: python3-kobo-worker >= 0.32.0
Requires: python3-kobo-worker >= 0.36.1
Requires: %{name}-common = %{version}-%{release}
Recommends: osh-worker-conf

Expand Down
1 change: 1 addition & 0 deletions osh/worker/osh-worker.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network-online.target

[Service]
Type=exec
ExecReload=kill -HUP $MAINPID
ExecStartPre=test -r /etc/osh/worker.conf
ExecStart=/usr/sbin/osh-worker -f
KillMode=process
Expand Down

0 comments on commit 62742b3

Please sign in to comment.