magnific0 / wondershaper

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

Return codes for systemctl support #57

Closed teoring closed 3 years ago

teoring commented 3 years ago

This commit fixes the issue that appears when wondershaper is running under systemctl. wondershaper -c -a would cause systemctl to treat the service as failed due to missing exit code 0.

wondershaper.service - Bandwidth shaper/Network rate limiter Loaded: loaded (/usr/lib/systemd/system/wondershaper.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since di 2020-12-01 11:57:44 CET; 1min 30s ago Process: 13281 ExecStop=/usr/bin/wondershaper -c -a $IFACE (code=exited, status=2)