Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2013 08:58:42 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Jack Mc Lauren <jack.mclauren@yahoo.com>
Cc:        FreeBSD Global Users Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: system restart after some seconds
Message-ID:  <20130105085842.c5d70579.freebsd@edvax.de>
In-Reply-To: <1357371837.19307.YahooMailNeo@web160101.mail.bf1.yahoo.com>
References:  <1357371837.19307.YahooMailNeo@web160101.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 Jan 2013 23:43:57 -0800 (PST), Jack Mc Lauren wrote:
> How can I restart my freeBSD after specific seconds ?

Unelegant and obvious:

	# sleep 10 ; shutdown -r now

If you need this to happen automatically, use /etc/rc.local,
and maybe put the whole command into background using (...)&.
Beware - endless loop! You need to be fast enough to revert
the change or go to SUM to do so. :-)

Parameters to shutdown itself, as well as for the "at" command,
only allow minutes as most precise elements; see "man shutdown"
and "man at" for details.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130105085842.c5d70579.freebsd>