You are not logged in.

#1 2024-11-18 09:44:55

marcus
Member
Registered: 2012-09-26
Posts: 29

[solved] systemd-poweroff.service not working after upgrade to 256.8-1

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

#2 2024-11-18 14:53:35

Ketsui
Member
Registered: 2018-04-16
Posts: 8

Re: [solved] systemd-poweroff.service not working after upgrade to 256.8-1

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

#3 2024-11-19 07:59:03

marcus
Member
Registered: 2012-09-26
Posts: 29

Re: [solved] systemd-poweroff.service not working after upgrade to 256.8-1

Fair point. I'll write a service to call systemctl poweroff then. Marking as solved.

Offline

Board footer

Powered by FluxBB