-
Notifications
You must be signed in to change notification settings - Fork 231
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
What is the recommended way of using ppp with systemd #371
Comments
@electrofloat Have you seen #370 ? Could very well be that the systemd notification support broke during the 2.4.7 to 2.4.9 time frame. Also, the build system since 2.4.9 has changed drastically, and that pull request fixes one of these issues. |
@electrofloat: Have you seen the comment of @enaess? |
Yes I have, but I'm not sure how that solves the above issue. in #370 a new configure parameter is added Ubuntu does not ship a systemd unit file for ppp in 22.04 so everyone has to write their own. Even if ppp is configured with --enable-systemd it only adds a feature called: |
This is my example systemd unit to tie the lifetime a PPPoE pppd instance to an Ethernet interface:
(This is a few years old: I think that more sandboxing could be added now.) The virtual interface is created with:
If you have an Ethernet port dedicated to PPPoE then you can use |
Could that unit be included somewhere in the sources of this project (maybe in contrib ?), so that packagers of systemd-based distros could converge on it ? Or is that out of scope of the project ? |
Hi!
Up until now I was using Ubuntu 20.04 which has ppp version 2.4.7-2+4.1ubuntu5.1 with my own systemd unit file something like this:
This worked fine. Then I upgraded to Ubuntu 22.04 which has ppp version 2.4.9-1+1ubuntu3, and something changed.
Every time I restarted the above service I noticed in the logs that ppp terminates twice (receives SIGTERM twice) which has complications for me. (because I have a couple of ip-down.d/ip-up.d scripts which needs to finish before it ppp should be considered started/stopped)
Tried to figure out what is going on and it seems that it terminates once with
poff -a
and once because systemd sends the TERM signal to it almost immediately after executing ExecStop.I cannot decide if the working of systemd changed between 20.04 and 22.04 or ppp changed the way it handles the SIGTERM or something else.
For now I've modified the unit file to this
But this is obviously a hack. Can you suggest me how to handle ppp with systemd?
The text was updated successfully, but these errors were encountered: