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:
parent
2a53e42dba
commit
c76b9e5012
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue