Re: Delaying systemd reboot for a while

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, May 13, 2015 at 11:12:38PM -0400, Carlos A. Carnero Delgado wrote:
> I'm in need of rebooting a server 1 minute after I give the command. I'm
> used to
> shutdown -r +1
> which works as advertised. Now that shutdown is part of systemd
> <http://www.freedesktop.org/software/systemd/man/shutdown.html> and it is
> actually a link to it in CentOS 7, I've seen in the documentation

Have you tried this? It's a symlink, but systemctl knows to act
differently when called as shutdown, and the traditional use still
works. No need to hack around anything — just use 'shutdown -r' as
always. 

In Fedora at least, note that +1 is actually the _default_ — I think
that's true in EL7 as well but I don't have a system handy to check.
See `man shutdown` for more.

And `man systemd.time` for the time formats.

-- 
Matthew Miller
<mattdm@xxxxxxxxxxxxxxxxx>
Fedora Project Leader
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux