Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823886 - net-misc/netifrc-0.7.3: The service pppd is not reported as "started" while this one is running
Summary: net-misc/netifrc-0.7.3: The service pppd is not reported as "started" while t...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-15 23:00 UTC by L-Sebastien
Modified: 2023-10-13 14:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.77 KB, text/plain)
2021-11-15 23:00 UTC, L-Sebastien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description L-Sebastien 2021-11-15 23:00:36 UTC
Created attachment 751358 [details]
emerge --info

Summary
-------

A 'PPP' network service is not reported as "started" while this one is running.


Issue:
------

After to have configured a PPP over SSH connection as described from "/usr/share/doc/netifrc-0.7.3/net.example.bz2", the service 'net.ppp0' is not reported as "started" while this one is running.

 Bringing up interface ppp0
 *   Starting pppd in ppp0 ...                                                                                                                                                                                                         [ ok ]
 *   Backgrounding ...
 * WARNING: net.ppp0 has started, but is inactive


Suggested fix:
--------------

After search, it seems that the script '/lib/netifrc/net/pppd.sh' not report the status 'mark_service_started'.
Pending a correction, I have manual patched the file as this:

--- pppd.sh.bak 2021-11-15 23:50:04.488985499 +0100
+++ pppd.sh     2021-11-15 23:48:54.737518952 +0100
@@ -229,6 +229,7 @@
        else
                einfo "Backgrounding ..."
        fi
+       mark_service_started

        # pppd will re-call us when we bring the interface up
        exit 0
        

Regards,
Comment 1 Joakim Tjernlund 2021-11-17 13:56:08 UTC
checking /lib/netifrc/net:
# > grep mark_service_started *
vlan.sh:		mark_service_started "net.${ifname}"

Seems like most script in there lacks a call to mark_service_started
Comment 2 Jaco Kroon 2023-10-13 14:04:36 UTC
Hi,

 net.ppp100                                                                            [  started  ]

From ip-up script:

# Execute only if OpenRC is active, bug #490820
if [ -r /run/openrc/softlevel ]; then
	if [ -x /etc/init.d/net.$1 ]; then
		if ! /etc/init.d/net.$1 --quiet status ; then
			export IN_BACKGROUND="true"
			/etc/init.d/net.$1 --quiet start
		fi
	fi
fi


This comes from a long time ago.

Note that the interface is only Started once IP information is assigned, not when we've started the pppd daemon.