Bonjour
Je pense que j'ai un peu le même problème.
J'ai également suivi la procédure du wiki anglophone.
Cependant j'ai quelque chose de bizarre:
Code : Tout sélectionner
[root@LINUXPOWER gaylord]# systemctl status wol@eth0
wol@eth0.service - Wake-on-LAN for eth0
Loaded: loaded (/etc/systemd/system/wol@.service; disabled)
Active: failed (Result: exit-code) since lun. 2013-05-06 06:50:11 CEST; 1min 36s ago
Main PID: 1183 (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/wol@.service/eth0
mai 06 06:50:11 LINUXPOWER systemd[1]: Starting Wake-on-LAN for eth0...
mai 06 06:50:11 LINUXPOWER systemd[1]: wol@eth0.service: main process exited, code=exited, status=1/FAILURE
mai 06 06:50:11 LINUXPOWER systemd[1]: Failed to start Wake-on-LAN for eth0.
mai 06 06:50:11 LINUXPOWER systemd[1]: Unit wol@eth0.service entered failed state
mai 06 06:50:11 LINUXPOWER ethtool[1183]: ethtool: bad command line argument(s)
mai 06 06:50:11 LINUXPOWER ethtool[1183]: For more information run ethtool -h
[root@LINUXPOWER gaylord]# nano /etc/systemd/system/wol\@.service
[root@LINUXPOWER gaylord]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pg
Wake-on: g
Current message level: 0x00000000 (0)
Link detected: yes
[root@LINUXPOWER gaylord]# ethtool -s eth0 wol g
ethtool: bad command line argument(s)
For more information run ethtool -h
[root@LINUXPOWER gaylord]# ethtool -s eth0 wol g
[root@LINUXPOWER gaylord]#
Sur la 5ème ligne en partant du bas, c'est la commande ethtool copier depuis le fichier wol@.service et où j'ai remplacé le %i par eth0. Cette commande me retourne une erreur.
Sur la 2ème ligne en partant du bas, c'est la commande ethtool tapée à la mimine... Pas d'erreur.
J'ai l'impression que c'est exactement la même chose!
Pour info, wol@.service
Code : Tout sélectionner
[root@LINUXPOWER gaylord]# cat /etc/systemd/system/wol\@.service
[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target
[Service]
ExecStart=/usr/sbin/ethtool -s %i wol g
Type=oneshot
[Install]
WantedBy=multi-user.target
Je ne vois pas d'où vient cette erreur et comment la corriger.
Gaylord