Your message dated Tue, 22 Aug 2023 11:09:31 +0200
with message-id <ed304f9a-0da1-4bc4-a82d-3a12224e3...@debian.org>
and subject line Re: Bug#923964: systemd-sysv: shutdown should accept a date
has caused the Debian Bug report #923964,
regarding systemd-sysv: shutdown should accept a date
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
923964: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923964
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd-sysv
Version: 241-1
Severity: wishlist
Dear Maintainer,
Thanks to the diligent effort of people like yourself, my Debian
computers usually run without rebooting for months and sometimes even
years.
But sometimes some external issue, like a scheduled power outage,
mandates a clean scheduled shut down. This just happened to me: there is
a scheduled power outage at my workplace at 04:00 about two weeks from
today, so I need to power down a handful of machines beforehand.
Naturally I’d wish to
$ sudo shutdown --poweroff '2019-03-19 03:00'
But that doesn’t work, shutdown only accepts a time, or a delay in
minutes. Instead I end up converting the delay to minutes:
$ sudo shutdown --poweroff +$(echo "($(date --date='2019-03-19 03:00' '+%s') -
$(date '+%s')) / 60" | bc)
Yuck. The shutdown executable (which is just a symlink to systemctl, so
in fact already links to date parsing routines) really should take a
proper date string.
Perhaps this functionality can be accessed with "systemctl poweroff
--some-option=TIMESPEC", although I didn’t see it in systemctl(1). It
might make sense to add that, either the option or the documentation. It
might also make sense for shutdown(1) to mention "systemctl shutdown".
--- End Message ---
--- Begin Message ---
Version: 254-1
On Thu, 7 Mar 2019 22:01:44 +0100 Michael Biebl <bi...@debian.org> wrote:
Am 07.03.19 um 18:39 schrieb Barak A. Pearlmutter:
> Perhaps this functionality can be accessed with "systemctl poweroff
> --some-option=TIMESPEC", although I didn’t see it in systemctl(1). It
> might make sense to add that, either the option or the documentation. It
> might also make sense for shutdown(1) to mention "systemctl shutdown".
The current code is at
https://github.com/systemd/systemd/blob/master/src/systemctl/systemctl.c#L8430
Afaics, it provides minimal compatibility with the old, legacy shutdown
utility.
I can see your use case though.
Would you mind filing this upstream as a feature request at
https://github.com/systemd/systemd/issues/new/choose
systemctl gained a "--when" option in v254 that can be used for shutdown.
This option is only available for systemctl, not the legacy
"/sbin/shutdown" interface.
Regards,
Michael
OpenPGP_signature.asc
Description: OpenPGP digital signature
--- End Message ---