Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutdown disrepects dry-run (e.g. shutdown -k 120, shutdown -k -c) #32759

Open
pajod opened this issue May 11, 2024 · 0 comments
Open

shutdown disrepects dry-run (e.g. shutdown -k 120, shutdown -k -c) #32759

pajod opened this issue May 11, 2024 · 0 comments
Labels
bug 🐛 Programming errors, that need preferential fixing login systemctl

Comments

@pajod
Copy link

pajod commented May 11, 2024

systemd version the issue has been seen with

255.4-1ubuntu8

Used distribution

Ubuntu 24.04

Linux kernel version used

6.8.0-31-generic #31-Ubuntu

CPU architectures issue was seen on

None

Component

systemctl

Expected behaviour you didn't see

-k Do not halt, power off, or reboot, but just write the wall message.

Unexpected behaviour you saw

arg_when sets (or overrides existing) scheduled shutdown anyway

The dry_run is prefixed to the action and read back, but later in update_schedule_file I can see no branch on m->shutdown_dry_run and I wonder why reset_scheduled_shutdown resets it.

Was partially fixed in #1220

Steps to reproduce the problem

shutdown -k 120

Additional program output to the terminal or log subsystem illustrating the issue

cat /run/systemd/shutdown/scheduled
USEC=1337
WARN_WALL=0
MODE=poweroff
@pajod pajod added the bug 🐛 Programming errors, that need preferential fixing label May 11, 2024
@YHNdnzj YHNdnzj added the login label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing login systemctl
Development

No branches or pull requests

2 participants