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

Update ebusd.service #502

Closed
wants to merge 2 commits into from
Closed

Update ebusd.service #502

wants to merge 2 commits into from

Conversation

eh-gh
Copy link

@eh-gh eh-gh commented Jan 11, 2022

eliminating the warning during booting the system:
dmesg | grep ebus

systemd[1]: /etc/systemd/system/ebusd.service:10: PIDFile= references a path below legacy directory /var/run/, updating /var/run/ebusd.pid → /run/ebusd.pid; please update the unit file accordingly.

eliminating the warning during booting the system: 
dmesg | grep ebus

systemd[1]: /etc/systemd/system/ebusd.service:10: PIDFile= references a path below legacy directory /var/run/, updating /var/run/ebusd.pid → /run/ebusd.pid; please update the unit file accordingly.
@eh-gh eh-gh mentioned this pull request Jan 11, 2022
@@ -7,7 +7,7 @@ ConditionPathExists=/var/log
Type=forking
Restart=always
RestartSec=30
PIDFile=/var/run/ebusd.pid
PIDFile=/run/ebusd.pid
Copy link
Owner

Choose a reason for hiding this comment

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

according to https://www.gnu.org/prep/standards/html_node/Directory-Variables.html it should be /var/run and not /run

Copy link
Author

Choose a reason for hiding this comment

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

according to systemd document:
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
RuntimeDirectory= /run/

Copy link
Owner

Choose a reason for hiding this comment

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

then it would have to be done differently for initd/systemd. plus you'd also have to tell ebusd about the changed location

Copy link
Author

Choose a reason for hiding this comment

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

this you know better than, I just wanted to point it out that ev. path change is required.
thanks

Copy link
Owner

Choose a reason for hiding this comment

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

even GNUInstallDirs of recent cmake still has LOCALSTATEDIR/run in it with LOCALSTATEDIR usually being /var, so I'll keep it until that changes

@nathan-gs
Copy link

A better option for Systemd would be to run it in foreground mode, no need for PID files, etc

@john30 john30 closed this Sep 23, 2023
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.

3 participants