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