Re: freebsd doesm't see my script on boot
Gregory Edigarov wrote: [...] > > #PROVIDE l2tpd > #REQUIRE NETWORKING Try changing those lines to: # PROVIDE: l2tpd # REQUIRE: NETWORKING ^ ^ (add empty spaces and colons) Regards, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: [EMAIL PROTECTED] Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd doesm't see my script on boot
On Monday 27 November 2006 11:02, Jerry McAllister wrote: > On Mon, Nov 27, 2006 at 06:30:43PM +0200, Gregory Edigarov wrote: > > Hello, Everybody > > > > Well, here is what I am doing: > > ls -l /usr/local/etc/rc.d > > total 30 > > -r-xr-xr-x 1 root wheel 4744 Nov 13 11:38 apache22 > > -r-xr-xr-x 1 root wheel 673 Nov 13 14:27 clamav-clamd > > -r-xr-xr-x 1 root wheel 722 Nov 13 14:27 clamav-freshclam > > -r-xr-xr-x 1 root wheel 1057 Nov 13 14:27 clamav-milter > > -r-xr-xr-x 1 root wheel 1254 Nov 13 13:01 gnugk > > -r-xr-xr-x 1 root wheel 198 Nov 15 01:17 l2tpd > > -r-xr-xr-x 1 root wheel 196 Nov 14 12:35 popa3d > > -r-xr-xr-x 1 root wheel 1642 Nov 13 11:19 quagga > > -r-xr-xr-x 1 root wheel 4371 Nov 13 14:00 samba > > -r-xr-xr-x 1 root wheel 1324 Nov 14 15:20 squid > > -r-xr-xr-x 1 root wheel 564 Nov 13 11:19 watchquagga > > Doesn't the name need to end in '.sh' to be recognized and run from rc.d? > > It used to be that way anyway and I haven't noticed that it > has changed. > > Try changing the name to l2tpd.sh -- and leave it executable, of course. > > jerry > > > cat /usr/local/etc/rc.d/l2tpd > > #!/bin/sh > > > > #PROVIDE l2tpd > > #REQUIRE NETWORKING > > > > . /etc/rc.subr > > > > name="l2tpd" > > rcvar=`set_rcvar` > > command="/usr/local/sbin/${name}" > > flags="" > > echo "l2tp debug" > > > > load_rc_config $name > > run_rc_command "$1" > > > > in rc.conf: > > l2tpd_enable="YES" > > > > Then after reboot: > > ps ax | grep l2tpd > > 667 v1 RL+0:00.00 grep l2tpd > > > > i.e no l2tpd has been started. > > no messages on console, either. My script just got silently skipped, all > > other services are starting up fine. > > > > What's wrong? > > > > -- > > With best regards, > >Gregory Edigarov > > > > > > I think it changed in 6.X. 6.1 still recognizes the .sh extension, but it will also execute scripts in /usr/local/etc/rc.d that DON'T have the extension. lane ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd doesm't see my script on boot
On Monday 27 November 2006 10:30, Gregory Edigarov wrote: > Hello, Everybody > > Well, here is what I am doing: > ls -l /usr/local/etc/rc.d > total 30 > -r-xr-xr-x 1 root wheel 4744 Nov 13 11:38 apache22 > -r-xr-xr-x 1 root wheel 673 Nov 13 14:27 clamav-clamd > -r-xr-xr-x 1 root wheel 722 Nov 13 14:27 clamav-freshclam > -r-xr-xr-x 1 root wheel 1057 Nov 13 14:27 clamav-milter > -r-xr-xr-x 1 root wheel 1254 Nov 13 13:01 gnugk > -r-xr-xr-x 1 root wheel 198 Nov 15 01:17 l2tpd > -r-xr-xr-x 1 root wheel 196 Nov 14 12:35 popa3d > -r-xr-xr-x 1 root wheel 1642 Nov 13 11:19 quagga > -r-xr-xr-x 1 root wheel 4371 Nov 13 14:00 samba > -r-xr-xr-x 1 root wheel 1324 Nov 14 15:20 squid > -r-xr-xr-x 1 root wheel 564 Nov 13 11:19 watchquagga > > cat /usr/local/etc/rc.d/l2tpd > #!/bin/sh > > #PROVIDE l2tpd > #REQUIRE NETWORKING > > . /etc/rc.subr > > name="l2tpd" > rcvar=`set_rcvar` > command="/usr/local/sbin/${name}" > flags="" > echo "l2tp debug" > > load_rc_config $name > run_rc_command "$1" > > in rc.conf: > l2tpd_enable="YES" > > Then after reboot: > ps ax | grep l2tpd > 667 v1 RL+0:00.00 grep l2tpd > > i.e no l2tpd has been started. > no messages on console, either. My script just got silently skipped, all > other services are starting up fine. > > What's wrong? Maybe l2tpd is failing after initialization? Do you see "l2tp debug" during "local package initialization" section of boot? Try this: /etc/rc.d/localpkg restart does it show up? Does anything show up? Can you run it manually? If not then it might be that l2tp is silently failing during initialization. lane ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd doesm't see my script on boot
Gregory Edigarov wrote: > Hello, Everybody > > Well, here is what I am doing: > ls -l /usr/local/etc/rc.d > total 30 > -r-xr-xr-x 1 root wheel 4744 Nov 13 11:38 apache22 > -r-xr-xr-x 1 root wheel 673 Nov 13 14:27 clamav-clamd > -r-xr-xr-x 1 root wheel 722 Nov 13 14:27 clamav-freshclam > -r-xr-xr-x 1 root wheel 1057 Nov 13 14:27 clamav-milter > -r-xr-xr-x 1 root wheel 1254 Nov 13 13:01 gnugk > -r-xr-xr-x 1 root wheel 198 Nov 15 01:17 l2tpd > -r-xr-xr-x 1 root wheel 196 Nov 14 12:35 popa3d > -r-xr-xr-x 1 root wheel 1642 Nov 13 11:19 quagga > -r-xr-xr-x 1 root wheel 4371 Nov 13 14:00 samba > -r-xr-xr-x 1 root wheel 1324 Nov 14 15:20 squid > -r-xr-xr-x 1 root wheel 564 Nov 13 11:19 watchquagga > > cat /usr/local/etc/rc.d/l2tpd > #!/bin/sh > > #PROVIDE l2tpd > #REQUIRE NETWORKING > > . /etc/rc.subr > > name="l2tpd" > rcvar=`set_rcvar` > command="/usr/local/sbin/${name}" > flags="" > echo "l2tp debug" > > load_rc_config $name > run_rc_command "$1" > > in rc.conf: > l2tpd_enable="YES" > > Then after reboot: > ps ax | grep l2tpd > 667 v1 RL+0:00.00 grep l2tpd > > i.e no l2tpd has been started. > no messages on console, either. My script just got silently skipped, all > other services are starting up fine. > > What's wrong? > Does it work if you run it manually? does it start if you run /etc/rc.d/localpkg start not certain this will help but try adding verbose_loading="YES" to /boot/loader.conf to see if that give more info on startup. Also try adding set -x to your script to enable more debugging output is you think you need it Vince ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd doesm't see my script on boot
On Mon, Nov 27, 2006 at 06:30:43PM +0200, Gregory Edigarov wrote: > Hello, Everybody > > Well, here is what I am doing: > ls -l /usr/local/etc/rc.d > total 30 > -r-xr-xr-x 1 root wheel 4744 Nov 13 11:38 apache22 > -r-xr-xr-x 1 root wheel 673 Nov 13 14:27 clamav-clamd > -r-xr-xr-x 1 root wheel 722 Nov 13 14:27 clamav-freshclam > -r-xr-xr-x 1 root wheel 1057 Nov 13 14:27 clamav-milter > -r-xr-xr-x 1 root wheel 1254 Nov 13 13:01 gnugk > -r-xr-xr-x 1 root wheel 198 Nov 15 01:17 l2tpd > -r-xr-xr-x 1 root wheel 196 Nov 14 12:35 popa3d > -r-xr-xr-x 1 root wheel 1642 Nov 13 11:19 quagga > -r-xr-xr-x 1 root wheel 4371 Nov 13 14:00 samba > -r-xr-xr-x 1 root wheel 1324 Nov 14 15:20 squid > -r-xr-xr-x 1 root wheel 564 Nov 13 11:19 watchquagga Doesn't the name need to end in '.sh' to be recognized and run from rc.d? It used to be that way anyway and I haven't noticed that it has changed. Try changing the name to l2tpd.sh -- and leave it executable, of course. jerry > cat /usr/local/etc/rc.d/l2tpd > #!/bin/sh > > #PROVIDE l2tpd > #REQUIRE NETWORKING > > . /etc/rc.subr > > name="l2tpd" > rcvar=`set_rcvar` > command="/usr/local/sbin/${name}" > flags="" > echo "l2tp debug" > > load_rc_config $name > run_rc_command "$1" > > in rc.conf: > l2tpd_enable="YES" > > Then after reboot: > ps ax | grep l2tpd > 667 v1 RL+0:00.00 grep l2tpd > > i.e no l2tpd has been started. > no messages on console, either. My script just got silently skipped, all > other services are starting up fine. > > What's wrong? > > -- > With best regards, >Gregory Edigarov > > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
freebsd doesm't see my script on boot
Hello, Everybody Well, here is what I am doing: ls -l /usr/local/etc/rc.d total 30 -r-xr-xr-x 1 root wheel 4744 Nov 13 11:38 apache22 -r-xr-xr-x 1 root wheel 673 Nov 13 14:27 clamav-clamd -r-xr-xr-x 1 root wheel 722 Nov 13 14:27 clamav-freshclam -r-xr-xr-x 1 root wheel 1057 Nov 13 14:27 clamav-milter -r-xr-xr-x 1 root wheel 1254 Nov 13 13:01 gnugk -r-xr-xr-x 1 root wheel 198 Nov 15 01:17 l2tpd -r-xr-xr-x 1 root wheel 196 Nov 14 12:35 popa3d -r-xr-xr-x 1 root wheel 1642 Nov 13 11:19 quagga -r-xr-xr-x 1 root wheel 4371 Nov 13 14:00 samba -r-xr-xr-x 1 root wheel 1324 Nov 14 15:20 squid -r-xr-xr-x 1 root wheel 564 Nov 13 11:19 watchquagga cat /usr/local/etc/rc.d/l2tpd #!/bin/sh #PROVIDE l2tpd #REQUIRE NETWORKING . /etc/rc.subr name="l2tpd" rcvar=`set_rcvar` command="/usr/local/sbin/${name}" flags="" echo "l2tp debug" load_rc_config $name run_rc_command "$1" in rc.conf: l2tpd_enable="YES" Then after reboot: ps ax | grep l2tpd 667 v1 RL+0:00.00 grep l2tpd i.e no l2tpd has been started. no messages on console, either. My script just got silently skipped, all other services are starting up fine. What's wrong? -- With best regards, Gregory Edigarov ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"