Skip to content
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

[build] allow disabling systemd service unit install #2652

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

milas
Copy link
Contributor

@milas milas commented Dec 27, 2024

Add INSTALL_SYSTEMD_UNIT which can explicitly be set to false to disable installing the service unit even if systemd is available.

If not defined, it defaults to true, i.e. the systemed service unit is created. As a result, this change is backwards compatible: it's required to opt-out of systemd unit installation.

In particular, this is useful for NixOS, where a systemd unit will be created independently from the CMake build.

See also:

Copy link

google-cla bot commented Dec 27, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@milas
Copy link
Contributor Author

milas commented Dec 27, 2024

(just noting that I made the CLA bot happy, so you can disregard its comment now.)

@jwhui jwhui requested review from bukepo and jwhui January 6, 2025 20:31
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.38%. Comparing base (2b41187) to head (a5907b1).
Report is 928 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2652       +/-   ##
===========================================
- Coverage   55.77%   43.38%   -12.40%     
===========================================
  Files          87      108       +21     
  Lines        6890    13359     +6469     
  Branches        0      963      +963     
===========================================
+ Hits         3843     5796     +1953     
- Misses       3047     7255     +4208     
- Partials        0      308      +308     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Pandapip1
Copy link

There's a merge conflict now it seems.

Add `INSTALL_SYSTEMD_UNIT` which can explicitly be set to `false`
to disable installing the service unit even if systemd is available.

If not defined, it defaults to true, i.e. the systemed service unit
is created. As a result, this change is backwards compatible: it's
required to _opt-out_ of systemd unit installation.
@jwhui jwhui force-pushed the milas/cmake-systemd-optout branch from 44290c4 to a5907b1 Compare January 28, 2025 19:24
@jwhui jwhui merged commit fb5fd59 into openthread:main Jan 28, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants