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

Permissions for /var/run/passivedns/passivedns.pid running as non-root #117

Open
rvaglid opened this issue Oct 13, 2020 · 2 comments
Open

Comments

@rvaglid
Copy link

rvaglid commented Oct 13, 2020

Hi there, we're running passivedns on RH7, but after each reboot folder /var/run/passivedns does not get automatically recreated. The /var/run (symlinked to /run in RH/Fedora) is a tmpfs, so these folders are non-persistent.

Is there a workaround for this? I assume this is more a RH issue than a passivedns issue.

Cheers,
Rolf

@gamelinux
Copy link
Owner

@rvaglid
Copy link
Author

rvaglid commented Oct 15, 2020

Thanks for the link Edward, that points to the exact same issue.
However we're starting passivedns using sysV/init and not systemd, so I ended up adding the following under the start function in /etc/init.d/passivedns:

function start(){
mkdir /run/passivedns/
chown -R user.group /run/passivedns/
daemon $prog etc..

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

2 participants