UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: info@upwork.link

Wake-on-LAN and systemd

without comments

To use systemd – create a new service unit file /etc/systemd/system/wol@.service:

Description=Wake-on-LAN for %I

ExecStart=/sbin/ethtool -s %I wol g


Then activate this new service for your network adapter:

# ln -s /etc/systemd/system/wol\@.service /etc/systemd/system/multi-user.target.wants/wol\@eth0.service
# systemctl --system daemon-reload
# systemctl start wol\@eth0.service
# systemctl status wol\@eth0.service
wol@eth0.service - Wake-on-LAN for eth0
	  Loaded: loaded (/etc/systemd/system/wol@.service; enabled)
	  Active: inactive (dead) since Mon, 21 May 2012 12:12:06 +0300; 6s ago
	 Process: 1971 ExecStart=/sbin/ethtool -s %I wol g (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/wol@.service/eth0

Help: http://0pointer.de/blog/projects/instances.html

Written by spectre

May 27th, 2014 at 8:53 am

Posted in Tips and Tricks

Leave a Reply