Hello,
I have noticed that the use of the "-p file.pid" argument for loadproc is being
removed from BLFS bootscripts due to a bug in LFS bootscripts. Unfortunately,
the prohibition of the "-p" switch breaks the scenario when more than one pppd
is running in the planned update of the pppoe service. Please advise what
should
be done.
IMHO, the proper solution is to issue the LFS erratum, and mention it in BLFS.
The second possible solution is to ship the fixed "functions" file in BLFS
bootscripts, and let it overwrite the buggy file from LFS.
Here is a planned PPPoE-related diff of the BLFS bootscripts, that,
unfortunately, assumes non-buggy loadproc:
Index: blfs/ppp/pppoe
===================================================================
--- blfs/ppp/pppoe (revision 0)
+++ blfs/ppp/pppoe (revision 0)
@@ -0,0 +1,9 @@
+plugin rp-pppoe.so
+noauth
+hide-password
+debug
+defaultroute
+noipdefault
+usepeerdns
+persist
+updetach
Index: blfs/sysconfig/network-devices/services/pppoe
===================================================================
--- blfs/sysconfig/network-devices/services/pppoe (revision 7274)
+++ blfs/sysconfig/network-devices/services/pppoe (working copy)
@@ -10,18 +10,19 @@
. /etc/sysconfig/rc
. $rc_functions
+. $IFCONFIG
case "$2" in
up)
boot_mesg "Bringing up the PPPoE interface..."
- /usr/sbin/pppoe-start
- evaluate_retval
+ modprobe pppoe 2>/dev/null
+ udevsettle
+ loadproc -p /var/run/ppp-${1}.pid pppd call pppoe ${1}
linkname
${1} ${PPP_OPTS}
;;
down)
boot_mesg "Bringing down the PPPoE interface..."
- /usr/sbin/pppoe-stop
- evaluate_retval
+ killproc -p /var/run/ppp-${1}.pid pppd
;;
*)
Index: ChangeLog
===================================================================
--- ChangeLog (revision 7274)
+++ ChangeLog (working copy)
@@ -1,3 +1,6 @@
+2008-03-15 Alexander E. Patrakov <[EMAIL PROTECTED]>
+ * Imported the new pppoe service script from the LiveCD repository.
+
2008-03-12 Dan Nicholson <[EMAIL PROTECTED]>
* Revert usage of pid files from a few commits ago except for
samba, which needs to know the correct process to kill. See
Index: Makefile
===================================================================
--- Makefile (revision 7274)
+++ Makefile (working copy)
@@ -28,6 +28,8 @@
install-service-pppoe: create-service-dir
install -m ${MODE} blfs/sysconfig/network-devices/services/pppoe
${EXTDIR}/sysconfig/network-devices/services
+ install -d -m ${DIRMODE} ${EXTDIR}/ppp/peers
+ install -m ${CONFMODE} blfs/ppp/pppoe ${EXTDIR}/ppp/peers
install-alsa: create-dirs
install -m ${MODE} blfs/init.d/alsa ${EXTDIR}/rc.d/init.d/
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page