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

Re: systemd ignores / overrides 'shutdown -t' delay?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 09/11/2015 02:22 PM, The Wanderer wrote:
> I've recently built a VM against jessie, and just for the heck of
> it, I left it with the default systemd-based configuration.
> 
> When I log in to the console as root and try to shut down, I get
> the following:
> 
> ======== # shutdown -h -t 0 Broadcast message from root@hostname
> (Fri 2015-09-11 14:08:29 EDT):
> 
> The system is going down for power off at Fri 2015-09-11 14:09:29
> EDT! ========
> 
> I.e., even though I specified a shutdown delay of zero seconds
> (meaning to shut down immediately), the shutdown is being delayed
> by 60 seconds.
> 
> What I expected instead was a response including the line
> 
> ======== The system is going down for power off NOW! ========
> 
> and an immediate shutdown (without even enough delay to log root
> out via Ctrl-D), which is what I get on my other systems, where
> systemd is not the active init system.
> 
> Google has not been helpful in trying to figure out why this might
> be happening; there are plenty of hits explaining how to make
> systemd inhibit shutdown or add a delay or the like, and a few hits
> related to Debian bug 635777 (which seems to be about a delay after
> the shutdown has actually begun, not about a delay in initiating
> the shutdown), but no real useful hints.
> 
> Grepping recursively and case-insensitively through /etc/systemd
> for 'shut' and '60' (separately) produces only two hits, neither of
> which seems relevant.
> 
> Any idea why this is happening, and how to get this VM to respect
> the semantics of the shutdown command again?
> 

There is no "-t" option.

man shutdown
shutdown [OPTIONS...] [TIME] [WALL...]
"If no time argument is specified, "+1" is implied."

Regards,
Ralph




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQEcBAEBCgAGBQJV8yJIAAoJECe2FpioHXO6NBYIAJ8frLAbVmpbgYg5Ty8u17+t
NYthuajNt2qvF3gwJ0npq7Hw5ZQ9CoDMry4lpeWi5jJ4a5J0eYD7109J/Im5nXC5
A3demPB38tSyjzREJxC86uD+VA5fOIOEP52At3/t0IV7zc2R3kmkwK/SZbCUDL30
wte8JefOiTfRE5BXz0GM9YZaq3iMhSL8gI6jSf9Rf9hT35Aph40tT7FPEY8wXT0W
IDB9hD09zyJjSvuQsUU6IMowpfReIQ5i5OVKs3VdLDIpB7eTG8siYxa7bkSZ2gfl
5Ed8GFTr5u4+X74ch8fQyp/GZ/8EvV8l5wewgZQo1AJ7T7ZYTavTHctFygk8TO4=
=QTKM
-----END PGP SIGNATURE-----


Reply to: