Upload shaping stays enabled across reboots

The service's stop step used `off`, which also disabled the service, so
the first shutdown turned shaping off for good.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-07 00:23:02 -06:00
commit c76b9e5012

View file

@ -28,6 +28,9 @@ on() {
}
case "${1:-on}" in
stop)
off # what the service runs at shutdown: it must stay enabled for the next boot
;;
off)
off
systemctl disable --now dezio-shape.service 2>/dev/null || true
@ -45,7 +48,7 @@ Wants=network-online.target
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/bin/dezio-shape on keep
ExecStop=/usr/local/bin/dezio-shape off
ExecStop=/usr/local/bin/dezio-shape stop
[Install]
WantedBy=multi-user.target