Commit fa858590 authored by nextime's avatar nextime

Add startup delay for daemon initialization

- Watchdog now waits 3 seconds after starting daemon before checking status
- Prevents false detection of daemon failure during startup
- Gives daemon time to fully initialize and create PID file
- Fixed both wssshd and wssshc watchdogs
- Improves reliability of daemon startup detection
parent 309d1940
......@@ -238,6 +238,8 @@ main() {
# Attempt to start daemon
if start_daemon; then
log_message "$DAEMON_NAME restarted successfully"
# Give daemon time to fully start before checking
sleep 3
else
log_message "Failed to restart $DAEMON_NAME"
fi
......
......@@ -233,6 +233,8 @@ main() {
# Attempt to start daemon
if start_daemon; then
log_message "$DAEMON_NAME restarted successfully"
# Give daemon time to fully start before checking
sleep 3
else
log_message "Failed to restart $DAEMON_NAME"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment