[arch-general] remote poweroff with systemd

Paul Gideon Dann pdgiddie at gmail.com
Wed Aug 7 10:53:56 EDT 2013


On Wednesday 07 Aug 2013 14:50:53 Mike Cloaked wrote:
> Would it be possible to delay the reboot command whilst connected in an ssh
> session by using something like:
> 
> # at now + 2 minutes systemctl reboot
> 
> then exit the ssh session and wait until the remote machine has rebooted?
> 
> I haven't tested it but is there a reason why this would not work?

The "at" daemon has to be installed & running for this to work.  I believe the 
latest systemd has functionality that is intended to replace "at", but I can't 
remember what the syntax is for that, or indeed if it's been released yet.

Paul


More information about the arch-general mailing list