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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

milas
Copy link

@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:

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.
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
Author

milas commented Dec 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant