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

Add “official” systemd units? #1316

Closed
hg opened this issue Nov 17, 2023 · 2 comments
Closed

Add “official” systemd units? #1316

hg opened this issue Nov 17, 2023 · 2 comments

Comments

@hg
Copy link
Contributor

hg commented Nov 17, 2023

Hello,

netbird has been maintained in the Arch Linux User repository since 2021, and recently Arch developers have expressed interest in packaging it in the official repository.

Would you be willing to merge hand-rolled systemd .service files instead of (or in addition to) netbird service install?

  • the client config is a templated unit which allows the user to create & start multiple client instances by using systemctl enable --now netbird@foo netbird@bar netbird@baz (the part after the @ matches the name of the config file in /etc/netbird)
  • all units provide partial sandboxing from the rest of the system (Add sandboxing and strip privileges on Linux with systemd #378, although netbird pretty much requires root or CAP_NET_ADMIN these days, they were much stricter in the past). The flags have been there for years and are pretty well tested by now.
  • they can be used by other Linux distributions as the project gets more adoption

The files are here. I can prepare a PR if you're interested, or you can just copy them from there.

If you'd rather stay with netbird service install, Arch (and others in the future) will probably ship their own units.

Thanks.

@mlsmaycon
Copy link
Collaborator

Hello @hg this is awesome. We are interested in the PR.

We are organizing the packaging files in the release_files path, but we are open to suggestions to make it clear.

Thanks for reaching out and for maintaining the package in the Arch Linux User repository.

hg added a commit to hg/netbird that referenced this issue Nov 17, 2023
* templated client
* signal server
* management server
@lfarkas
Copy link

lfarkas commented Nov 22, 2023

i also vote for a separate service file not the generated one. it'd be much easier on all distro to use the same official service file!

hg added a commit to hg/netbird that referenced this issue Nov 22, 2023
* templated client
* signal server
* management server
mlsmaycon pushed a commit that referenced this issue Nov 23, 2023
@hg hg closed this as completed Nov 23, 2023
surik pushed a commit that referenced this issue Dec 14, 2023
pulsastrix pushed a commit to pulsastrix/netbird that referenced this issue Dec 24, 2023
Foosec pushed a commit to Foosec/netbird that referenced this issue May 8, 2024
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

No branches or pull requests

3 participants