Hot fixes for version 2.2.8
This commit is contained in:
@@ -43,15 +43,30 @@ start_service() {
|
||||
procd_close_instance
|
||||
echo "QCAINFO Interpreter started"
|
||||
|
||||
# Start ping daemon
|
||||
echo "Starting Ping Daemon..."
|
||||
procd_open_instance
|
||||
procd_set_param command /www/cgi-bin/services/ping_daemon.sh
|
||||
procd_set_param respawn
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
echo "Ping Daemon started"
|
||||
# Start ping daemon if enabled in configuration
|
||||
PING_CONFIG_FILE="/etc/quecmanager/settings/ping_settings.conf"
|
||||
if [ -f "$PING_CONFIG_FILE" ]; then
|
||||
PING_ENABLED=$(awk -F'=' '/^PING_ENABLED=/ {print $2}' "$PING_CONFIG_FILE" 2>/dev/null | tr -d '"' | tr -d ' ')
|
||||
echo "Ping config found. PING_ENABLED='$PING_ENABLED'"
|
||||
|
||||
case "$PING_ENABLED" in
|
||||
true|1|on|yes|enabled)
|
||||
echo "Starting Ping Daemon..."
|
||||
procd_open_instance
|
||||
procd_set_param command /www/cgi-bin/services/ping_daemon.sh
|
||||
procd_set_param respawn
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
echo "Ping Daemon started"
|
||||
;;
|
||||
*)
|
||||
echo "Ping Daemon disabled in configuration (value: '$PING_ENABLED')"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
echo "Ping configuration not found at $PING_CONFIG_FILE, skipping Ping Daemon"
|
||||
fi
|
||||
|
||||
# Start memory daemon if enabled in configuration
|
||||
CONFIG_FILE="/etc/quecmanager/settings/memory_settings.conf"
|
||||
|
||||
Reference in New Issue
Block a user