habe auf der QNAP HS-210 Buster laufen und die Service Unit /usr/lib/systemd/system/wol-shutdown.service eingefügt:
(https://github.com/stapelberg/zkj-nas-t ... wn.service)
Code: Alles auswählen
# cat /usr/lib/systemd/system/wol-shutdown.service
[Unit]
Description=Enable Wake on LAN on shutdown
# Just for having the correct order when shutting down.
After=qcontrold.service
# Require eth0 to be present before trying to change WOL.
# not supported in systemd-44
#BindsTo=sys-subsystem-net-devices-eth0.device
Requires=sys-devices-platform-mv643xx_eth_port.0-net-eth0.device
After=sys-devices-platform-mv643xx_eth_port.0-net-eth0.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ethtool -s eth0 wol d
ExecStart=/usr/sbin/qcontrol wol off
ExecStop=/sbin/ethtool -s eth0 wol g
ExecStop=/usr/sbin/qcontrol wol on
[Install]
WantedBy=multi-user.target
Code: Alles auswählen
# systemctl status wol-shutdown.service
● wol-shutdown.service - Enable Wake on LAN on shutdown
Loaded: loaded (/lib/systemd/system/wol-shutdown.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-09-27 16:29:09 CEST; 9min ago
Process: 303 ExecStart=/sbin/ethtool -s eth0 wol d (code=exited, status=0/SUCCESS)
Process: 306 ExecStart=/usr/sbin/qcontrol wol off (code=exited, status=255/EXCEPTION)
Main PID: 306 (code=exited, status=255/EXCEPTION)
Sep 27 16:29:09 snas systemd[1]: Starting Enable Wake on LAN on shutdown...
Sep 27 16:29:09 snas qcontrol[306]: Error connecting to socket: No such file or directory
Sep 27 16:29:09 snas systemd[1]: wol-shutdown.service: Main process exited, code=exited, status=255/EXCEPTION
Sep 27 16:29:09 snas systemd[1]: wol-shutdown.service: Failed with result 'exit-code'.
Sep 27 16:29:09 snas systemd[1]: Failed to start Enable Wake on LAN on shutdown.
Grüße
Nachtrag: Wenn ich es manuell (systemctl start wol-shutdown.service) starte, funktioniert es. Ich hab leider keinerlei Ansatz, bin mit meinem Latein am Ende.
Nachtrag 2: Auszug aus journalctl
Code: Alles auswählen
Sep 27 16:29:09 snas systemd[1]: Started qcontrold.
Sep 27 16:29:09 snas systemd[1]: Starting Enable Wake on LAN on shutdown...
Sep 27 16:29:09 snas systemd[1]: Started Daily Cleanup of Temporary Directories.
Sep 27 16:29:09 snas qcontrol[302]: qcontrol 0.5.6 daemon starting.
Sep 27 16:29:09 snas qcontrol[302]: Register evdev on /dev/input/by-path/platform-gpio_keys-event
Sep 27 16:29:09 snas qcontrol[302]: confdir: loading from /etc/qcontrol.d...
Sep 27 16:29:09 snas systemd[1]: Reached target System Time Synchronized.
Sep 27 16:29:09 snas qcontrol[302]: server already running
Sep 27 16:29:09 snas qcontrol[302]: Error accepting connection: Bad file descriptor
Sep 27 16:29:09 snas systemd[1]: Started Daily man-db regeneration.
Sep 27 16:29:09 snas systemd[1]: Started Daily apt download activities.
Sep 27 16:29:09 snas systemd[1]: Started Daily apt upgrade and clean activities.
Sep 27 16:29:09 snas systemd[1]: Started Daily rotation of log files.
Sep 27 16:29:09 snas systemd-logind[301]: New seat seat0.
Sep 27 16:29:09 snas systemd[1]: Reached target Timers.
Sep 27 16:29:09 snas systemd[1]: Started Raise network interfaces.
Sep 27 16:29:09 snas systemd[1]: qcontrold.service: Succeeded.
Sep 27 16:29:09 snas dbus-daemon[299]: [system] Successfully activated service 'org.freedesktop.systemd1'
Sep 27 16:29:09 snas qcontrol[306]: Error connecting to socket: No such file or directory
Sep 27 16:29:09 snas systemd[1]: Started qcontrold.
Sep 27 16:29:09 snas qcontrol[307]: qcontrol 0.5.6 daemon starting.
Sep 27 16:29:09 snas qcontrol[307]: Register evdev on /dev/input/by-path/platform-gpio_keys-event
Sep 27 16:29:09 snas qcontrol[307]: confdir: loading from /etc/qcontrol.d...
Sep 27 16:29:09 snas systemd[1]: Reached target Network.
Sep 27 16:29:09 snas systemd[1]: Starting Permit User Sessions...
Sep 27 16:29:09 snas systemd[1]: Starting OpenBSD Secure Shell server...
Sep 27 16:29:09 snas systemd[1]: wol-shutdown.service: Main process exited, code=exited, status=255/EXCEPTION
Sep 27 16:29:09 snas systemd[1]: wol-shutdown.service: Failed with result 'exit-code'.
Sep 27 16:29:09 snas systemd[1]: Failed to start Enable Wake on LAN on shutdown.