Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2020 18:17:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 250908] /etc/rc.d/ppp profile support incomplete
Message-ID:  <bug-250908-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250908

            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@FreeBSD.org
          Reporter: thomas@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 pw=
ait
and sometimes ppp takes a few seconds to hangup and exit.


I have the following in rc.conf:

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

After boot both profiles are running well:

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

I can stop a profile:

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

But not start it again:

[tykling@container1 ~]$ sudo service ppp start telmore_huawei=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
ppp already running?  (pid=3D83309).

If I stop the other one:

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

I can start one of them again:

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

But not the other one:

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

I think the profile support needs some love.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250908-227>