Re: Network interface restart



Op woensdag 09 mei 2007, schreef Sam Lawrance:

Hi,

Could someone please point out where I made the mistake?

When your network interface went down, you lost the connection, your
shell lost the terminal and your script was terminated before it
could finish doing what it was supposed to. Possibly you need to use
something like "nohup" or "screen" (from ports), or have some other
form of terminal available.

Thanks for your answer.

But as I said, I ran the script from a screen session, so that makes me wonder
why the execution was aborted.

But is running '/etc/rc.d/netif restart'' known to cause problems? I think I
shouldn't have to use scripts like these just to change a setting on the
network interface.

Kind regards,

--
Bram Schoenmakers

BOFH Excuse #8: static buildup
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: How-to auto-start programmes when I connect to Internet?
    ... > Sure, write a script that checks for connection, and restarts ... one way try to script this is by ... network interface on cable connect. ...
    (Fedora)
  • Re: Network interface restart
    ... When your network interface went down, you lost the connection, your ... shell lost the terminal and your script was terminated before it ... But as I said, I ran the script from a screen session, so that makes me ...
    (freebsd-questions)
  • Re: Network interface restart
    ... When your network interface went down, you lost the connection, your ... shell lost the terminal and your script was terminated before it ... But as I said, I ran the script from a screen session, so that makes me ... "ifconfig bge0 mtu 1472" ...
    (freebsd-questions)
  • Re: Network interface restart
    ... When your network interface went down, you lost the connection, your ... shell lost the terminal and your script was terminated before it ... But as I said, I ran the script from a screen session, so that makes me wonder ...
    (freebsd-questions)
  • Re: dialup solution (as seconary connection / iptables )
    ... ip-down is launched by pppd only after the PPP link no longer available ... first with MINICOM or is PAP and script not mutualy exclusive? ... do have to "make the connection first with MINICOM." ... If you use the Linux box and route the news IP address to it on each ...
    (comp.os.linux.networking)

Loading