warning about pid file during reload
even if it is set to its default value
#228
Labels
bug
Something isn't working
reload
even if it is set to its default value
#228
Running 08f1ca2 (version 1.5.0).
When issuing a configuration reload with
pgagroal-cli reload
the system displays a log notice about the PID file:The problem is that the pid file is not indicated at all in the configuration, so it will get its default value, that is not changed during the reload action.
The problem seems to be that the function
restart_string
correctly checks even for null/empty strings, and in the new configuration (the one being reloaded) thepidfile
is not initialized at all, so the message is triggered.Either
restart_string
(and similar functions) should be made aware of which arguments can be not filled because they will be set later on, or theconfig->pidfile
attribute should be set early on duringpgagroal_read_configuration
instead of when the attribute is going to be used (inmain.c
withincreate_pidfile
).The text was updated successfully, but these errors were encountered: