Ref #851
The netpulse-agent env file parser (/etc/netpulse-agent.env) does not support inline trailing comments. A line like:
NETPULSE_SCAN_INTERVAL=0 # min entre scans de vecinos; "0" = sin scans periódicos
is parsed as value 0 # min entre scans..., so the agent logs WARN "NETPULSE_SCAN_INTERVAL inválido, usando 30m". Removing the trailing comment makes it parse correctly (0 -> scan_interval=-1s).
The install script that generates the .env file already writes such inline comments, so parser and generator must agree on dotenv-style semantics: comments start at an unescaped, unquoted #; double and single quotes protect # inside values.
Ref #851
The netpulse-agent env file parser (/etc/netpulse-agent.env) does not support inline trailing comments. A line like:
is parsed as value
0 # min entre scans..., so the agent logs WARN "NETPULSE_SCAN_INTERVAL inválido, usando 30m". Removing the trailing comment makes it parse correctly (0 -> scan_interval=-1s).The install script that generates the .env file already writes such inline comments, so parser and generator must agree on dotenv-style semantics: comments start at an unescaped, unquoted
#; double and single quotes protect#inside values.