> ... I'm looking for some convenient systemd method for > running the ethtool command line every time it boots. > > Anyone happen to have a favorite method, off hand?
This is what systemd `oneshot` services are for! They run one command when they start and stay 'running'. Here's an example unit of what this might look like: ``` # /etc/systemd/system/wol-fixer.service [Unit] Description=WoL fixer # require and wait for the network device to be ready; use whatever the network device unit is on your system from `systemctl list-units --type=device` After=sys-subsystem-net-devices-eth0.device Requires=sys-subsystem-net-devices-eth0.device [Service] Type=oneshot ExecStart=/usr/sbin/ethtool <whatever args> [Install] WantedBy=multi-user.target ``` Drop this under /etc/systemd/system/<something>.service and then enable that <something>. You could get fancy with this with systemd template units for multiple interfaces but this will work just fine for a single one. - Robert
