From c76b9e5012d8630bfca0ac8013d11a3c0e60f67e Mon Sep 17 00:00:00 2001 From: astar76 Date: Sat, 7 Nov 2026 00:23:02 -0600 Subject: [PATCH] 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 --- deploy/shape-upload.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/shape-upload.sh b/deploy/shape-upload.sh index d592c15..aacfbb8 100755 --- a/deploy/shape-upload.sh +++ b/deploy/shape-upload.sh @@ -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