From owner-freebsd-questions@FreeBSD.ORG Wed Nov 24 01:23:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5242E16A4CE for ; Wed, 24 Nov 2004 01:23:26 +0000 (GMT) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id F420543D39 for ; Wed, 24 Nov 2004 01:23:25 +0000 (GMT) (envelope-from infofarmer@mail.ru) Received: from [83.237.13.31] (port=3229 helo=[172.17.0.70]) by mx1.mail.ru with esmtp id 1CWlsS-0003D8-00 for questions@freebsd.org; Wed, 24 Nov 2004 04:23:24 +0300 Message-ID: <41A3E291.90005@mail.ru> Date: Wed, 24 Nov 2004 04:23:29 +0300 From: "Andrew P." User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected Subject: rc.network glitch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: infofarmer@mail.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 01:23:26 -0000 Hello! I posted this problem earlier here, but I haven't got any response yet. I tried to debug it myself and here's where I stand: The problem was that ppp does not start automatically at system startup, although all ppp_* variables are properly set in /etc/rc.conf. I tried to edit /etc/rc.network a little, adding a couple of echo's and a redirection. ==================================================== case ${ppp_enable} in [Yy][Ee][Ss]) ... su -m ${ppp_user} -c "exec ${ppp_command}" 2>&1 > /var/log/yesppp echo "Yes!!!" >> /var/log/yesppp echo ${ppp_command} >> /var/log/yesppp ;; esac ==================================================== So after I restarted the box, I have this yesppp file containing only two lines: Yes!!! /usr/sbin/ppp -quiet -ddial -nat mtu I guess it should mean that everything's okay, but ppp has not been actually started! There's not even a record in /var/log/ppp.log. I tried to type by hand: su -m root -c "/usr/sbin/ppp -quiet -ddial -nat mtu" and it starts okay. There's no error in dmesg, no kld's are loaded at startup, network is configured all right. Could anyone hint at how to debug such problems? Best regards, Andrew P.