internal/router: do not exit when stopping successfully on freshtomato

Otherwise, "restart" will be broken because "start" won't never be called.
This commit is contained in:
Cuong Manh Le
2023-06-03 00:00:20 +07:00
committed by Cuong Manh Le
parent 726a25a7ea
commit 25eae187db

View File

@@ -229,7 +229,7 @@ stop() {
if [ -f "$pid_file" ]; then
rm "$pid_file"
fi
exit 0
return 0
fi
printf "."
sleep 2