magnific0 / wondershaper

Command-line utility for limiting an adapter's bandwidth
GNU General Public License v2.0
1.71k stars 256 forks source link

wondershaper.service executable location #76

Open Snake883 opened 2 years ago

Snake883 commented 2 years ago

I had to change the service executable file location: FROM: /usr/sbin/wondershaper TO: /usr/local/sbin/wondershaper

$ cat /usr/local/lib/systemd/system/wondershaper.service

[Unit]
Description=Bandwidth shaper/Network rate limiter
After=network-online.target
Wants=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/systemd/wondershaper.conf
ExecStart=**/usr/local/sbin/wondershaper** -a $IFACE -d $DSPEED -u $USPEED
ExecStop=**/usr/local/sbin/wondershaper** -c -a $IFACE

[Install]
WantedBy=multi-user.target