Hello forum,
i have a problem with a systemd unit that is supposed to run on system shutdown.
The unit looks like this:
----
[Unit]
Description=Send shut off signal to power outlet
DefaultDependencies=no
Conflicts=reboot.target
Before=poweroff.target halt.target shutdown.target
Requires=poweroff.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/usr/local/bin/send -p 7 11111 3 0
[Install]
WantedBy=shutdown.target
-----
Basically it just calls the send binary to turn of a power socket. When running the send command manually, everything works fine....
I am quite puzzled here, does some have a hint for me?
Thanks!
i have a problem with a systemd unit that is supposed to run on system shutdown.
The unit looks like this:
----
[Unit]
Description=Send shut off signal to power outlet
DefaultDependencies=no
Conflicts=reboot.target
Before=poweroff.target halt.target shutdown.target
Requires=poweroff.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/usr/local/bin/send -p 7 11111 3 0
[Install]
WantedBy=shutdown.target
-----
Basically it just calls the send binary to turn of a power socket. When running the send command manually, everything works fine....
I am quite puzzled here, does some have a hint for me?
Thanks!
Statistics: Posted by muelli — Tue Jun 03, 2025 6:37 am