You are not logged in.
Hi forum,
I am running a backup server, which boots everyday via rtc at 6AM and shuts down automatically 10 min after all backup jobs are finished. The shutdown is systemd-poweroff.service, which is triggered with a timer:
[Unit]
Description=System Power Off
Documentation=man:systemd-poweroff.service(8)
[Timer]
OnActiveSec=10m
This works fine with systemd-256.7-1 (and older) but hangs after upgrading at "Stopping Network Configuration".
I was able to reproduce this by running
sudo systemctl start systemd-poweroff.service
Running
sudo systemctl poweroff
works fine, however. My Laptop shows the same behavior, so I doubt this is hardware related (10 year old server Mobo vs 1 year old laptop). Any advice on how to fix this?
Last edited by marcus (2024-11-19 08:00:04)
Offline
From systemd-poweroff.service manual:
Note that systemd-poweroff.service (and the related units) should never be executed directly. Instead, trigger system shutdown with a command such as "systemctl poweroff".
Offline
Fair point. I'll write a service to call systemctl poweroff then. Marking as solved.
Offline