[Bug 250908] /etc/rc.d/ppp profile support incomplete

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 6 18:17:38 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250908

            Bug ID: 250908
           Summary: /etc/rc.d/ppp profile support incomplete
           Product: Base System
           Version: 12.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs at FreeBSD.org
          Reporter: thomas at gibfest.dk

Hello,

I've been trying to use the multi profile support in /etc/rc.d/ppp but it
doesn't work very well. It can start and stop multiple ppp profiles all at the
same time, so that part works.

What doesn't work is:

1) (re)starting a ppp profile if another one is already running.
2) Restarting all ppp profiles only works sometimes because of a missing pwait
and sometimes ppp takes a few seconds to hangup and exit.


I have the following in rc.conf:

[tykling at container1 ~]$ grep ppp /etc/rc.conf
ppp_enable="YES"
ppp_profile="telmore_quectel telmore_huawei"
ppp_telmore_quectel_mode="ddial"
ppp_telmore_quectel_unit="0"
ppp_telmore_huawei_mode="ddial"
ppp_telmore_huawei_unit="1"
[tykling at container1 ~]$ 

After boot both profiles are running well:

[tykling at container1 ~]$ sudo service ppp status
ppp is running as pid 83309 92053.

I can stop a profile:

[tykling at container1 ~]$ sudo service ppp stop telmore_huawei
Stopping PPP profile: telmore_huawei.
[tykling at container1 ~]$ sudo service ppp status
ppp is running as pid 83309.

But not start it again:

[tykling at container1 ~]$ sudo service ppp start telmore_huawei                   
ppp already running?  (pid=83309).

If I stop the other one:

[tykling at container1 ~]$ sudo service ppp stop telmore_quectel                   
Stopping PPP profile: telmore_quectel.
[tykling at container1 ~]$ sudo service ppp status
ppp is not running.

I can start one of them again:

[tykling at container1 ~]$ sudo service ppp start telmore_quectel
Starting PPP profile: telmore_quectel
.

But not the other one:

[tykling at container1 ~]$ sudo service ppp start telmore_huawei 
ppp already running?  (pid=69181).
[tykling at container1 ~]$ sudo service ppp status
ppp is running as pid 69181.
[tykling at container1 ~]$ 

I think the profile support needs some love.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list