Re: remote poweroff with systemd

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



On Wed, Aug 7, 2013 at 11:23 AM, Joe Eaves <jinux@xxxxxxxxxx> wrote:

>
> How about something like 'shutdown -t 5'? I know if I put that into an SSH
> session manually, it'll print me a wall message and then I have some time
> to hit CTRL-D (or exit if I'm quick), so why would an automated command not
> be able to do the same?
>

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?
-- 
mike c


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux