Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 13:47:21 -0800
From:      <dteske@FreeBSD.org>
To:        "'Luca Ferrari'" <fluca1978@infinito.it>, <dteske@freebsd.org>
Cc:        'Erich Dollansky' <erichsfreebsdlist@alogt.com>, questions@freebsd.org, 'Vladislav Prodan' <universite@ukr.net>, 'Darren Pilgrim' <list_freebsd@bluerosetech.com>
Subject:   RE: Re[2]: Restart network without reboot ?
Message-ID:  <0c6101cf26a9$ae9347d0$0bb9d770$@FreeBSD.org>
In-Reply-To: <CAKoxK%2B7gHO7ZMwYgrVDBu3EgsMkBDLa7Va1inUi8C43vhWJ_Rg@mail.gmail.com>
References:  <1391822758.499117562.qad9aups@frv35.fwdcdn.com> <20140208102029.04d2eb10@X220.alogt.com> <1391827303.738906888.k9hzy6eo@frv35.fwdcdn.com> <52F5BF3A.2030500@bluerosetech.com> <1391864386.931739885.x8t44ikc@frv35.fwdcdn.com> <0b7f01cf267d$72ac84b0$58058e10$@FreeBSD.org> <CAKoxK%2B7gHO7ZMwYgrVDBu3EgsMkBDLa7Va1inUi8C43vhWJ_Rg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: Luca Ferrari [mailto:fluca1978@infinito.it]
> Sent: Monday, February 10, 2014 12:11 PM
> To: dteske@freebsd.org
> Cc: questions@freebsd.org; Erich Dollansky; Vladislav Prodan; Darren
Pilgrim
> Subject: Re: Re[2]: Restart network without reboot ?
> 
> On Mon, Feb 10, 2014 at 5:30 PM,  <dteske@freebsd.org> wrote:
> > sh -c 'echo "$((($(date +%M)+2)%60)) $(date +%H) * * * root sh
> > /tmp/do_it_now.sh" >> /etc/crontab'
> 
> Sounds to me a little too dangerous: what if you forget to remove the
entry
> 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
where
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").
-- 
Devin


_____________
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0c6101cf26a9$ae9347d0$0bb9d770$>