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

changable PIDFile path #5

Open
Andrwe opened this issue Jan 25, 2014 · 0 comments
Open

changable PIDFile path #5

Andrwe opened this issue Jan 25, 2014 · 0 comments

Comments

@Andrwe
Copy link

Andrwe commented Jan 25, 2014

Hi,

it should be possible to specify the path of the PIDFile while running in daemon-mode.

If you run the daemon as non-root-user the path of the daemon-binary has to be writeable for this user otherwise the daemon doesn't start.
This means currently you aren't able to install this application in a default linux FHS because the PIDFile would be created in /usr/bin/.

A quick fix I'm using is to add the following lines to the parameters of "Daemons.run":
dir_mode: :normal,
dir: "/var/run/palava-machine/",

This approach isn't quite portable as the path has to be created by the installation process.

Regards,
Andrwe

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

1 participant