Restart network without reboot ?

dteske at dteske at
Mon Feb 10 21:47:33 UTC 2014

> -----Original Message-----
> From: Luca Ferrari [mailto:fluca1978 at]
> Sent: Monday, February 10, 2014 12:11 PM
> To: dteske at
> Cc: questions at; Erich Dollansky; Vladislav Prodan; Darren
> Subject: Re: Re[2]: Restart network without reboot ?
> On Mon, Feb 10, 2014 at 5:30 PM,  <dteske at> wrote:
> > sh -c 'echo "$((($(date +%M)+2)%60)) $(date +%H) * * * root sh
> > /tmp/" >> /etc/crontab'
> Sounds to me a little too dangerous: what if you forget to remove the
> from crontab?
> Why not using at and/or a sleep+nohup to launch the job after a few
> seconds?
[Devin Teske] 

Just going out on a limb here (for fun); what if the box was in Siberia? It
would try to renegotiate in 24 hours if it didn't come back to the point
you could remove the line. Heh ;D

Nah, I just use cron because I've had bad luck in the past with attempts to
renegotiate the network from a process that itself is spawned via a network
process. That includes running things with nohup -- they still seem to die.

Cron has always done me right though (but I've never tried using "at").

The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

More information about the freebsd-questions mailing list