refactor: improve error handling and code readability in podkop.js and update init.d script to check sing-box status

This commit is contained in:
Ivan K
2025-02-23 22:56:01 +03:00
parent b806586a5a
commit 171381fa18
2 changed files with 84 additions and 99 deletions

View File

@@ -1828,7 +1828,7 @@ get_status() {
fi
# Check if service is running
if pgrep -f "podkop" >/dev/null; then
if pgrep -f "sing-box" >/dev/null; then
running=1
fi