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

daemon: create runtime directories with systemd-tmpfiles #311

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eworm-de
Copy link

@eworm-de eworm-de commented Dec 7, 2018

No description provided.

lldp_ARG_WITH([lldpd-pid-file], [Path to lldpd PID file], [${runstatedir}/lldpd.pid])
lldp_ARG_WITH([privsep-chroot], [Which directory to use to chroot lldpd], [${runstatedir}/lldpd/chroot])
lldp_ARG_WITH([lldpd-ctl-socket], [Path to socket for communication with lldpd], [${runstatedir}/lldpd/lldpd.socket])
lldp_ARG_WITH([lldpd-pid-file], [Path to lldpd PID file], [${runstatedir}/lldpd/lldpd.pid])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a pain for people upgrading. Why do you change them?

@vincentbernat
Copy link
Member

Hey!

I am OK with the change, except for the new locations. It may be cleaner to have everything in /var/run/lldpd, but this is not needed (the files outside are created while lldpd is running as root) and it will impact users upgrading. When using systemd, only the socket is in /var/run.

Also move pid file, socket and chroot directory to subdirectory to
prevent permission issues.

Signed-off-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Christian Hesse <mail@eworm.de>
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.

None yet

2 participants