-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Start wfx service on package installation on systems using syst… #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/sh | ||
| # SPDX-FileCopyrightText: 2025 Siemens AG | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| if command -v systemctl &> /dev/null; then | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, this script – as the others – use
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will replace current scripts with autogenerated code from
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With going Debian only (see below comment), that may be an option, as long as it is easily maintainable. |
||
| systemctl disable wfx.service | ||
| fi | ||
|
|
||
| if [ -d /run/systemd/system ]; then | ||
| systemctl stop wfx.service | ||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,6 +144,7 @@ nfpms: | |
| priority: extra | ||
| scripts: | ||
| postinstall: .ci/goreleaser/postinstall.sh | ||
| preremove: .ci/goreleaser/preremove.sh | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As this patch set applies to
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At least fedora does not start services on install, so we need to distinguish here.
Further, it seems only
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These are released in extra packages, see, e.g., the release artifacts for v0.4.1. This way, one can decide fine-grained what's needed or not for the application scenario at hand.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, OK, either we open the if-then-else hell or opt for one package format. I would go for Debian only and drop RPM support for the time being (requiring a breaking note and reasoning in the CHANGELOG). |
||
| postremove: .ci/goreleaser/postremove.sh | ||
| contents: | ||
| # it's the same content for all architectures | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.