Skip to content

Issuing a reload with a single server makes the status Not Init #232

@fluca1978

Description

@fluca1978

Running pgagroal 7fa65ed.
The configuration has a single server:

$ cat /etc/pgagroal/pgagroal.conf
...
[venkman]
host = venkman
port = 5432
primary = on

Once pgagroal has started the situation is:

$ pgagroal-cli details
Status:              Running
Active connections:  0
Total connections:   2
Max connections:     5
---------------------
Server:              venkman
Host:                venkman
Port:                5432
State:               Primary
---------------------
...

but then if issuing a reload the status of the only available server is lost:

$ pgagroal-cli reload && pgagroal-cli details
Status:              Running
Active connections:  0
Total connections:   2
Max connections:     5
---------------------
Server:              venkman
Host:                venkman
Port:                5432
State:               Not init
---------------------
...

No changes to the configuration.
This is related to #223 and in my opinion should be fixed before that issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions