cleanup, ensure haproxy is running and disallow writes to followers
This commit is contained in:
parent
0965f95ab0
commit
fef86deac8
9 changed files with 49 additions and 183 deletions
|
|
@ -134,6 +134,10 @@ func (ha *HAProxyManager) Start(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (ha *HAProxyManager) IsRunning(ctx context.Context) error {
|
||||
return ha.svc.Status(ctx)
|
||||
}
|
||||
|
||||
func (ha *HAProxyManager) Stop(ctx context.Context) error {
|
||||
return ha.svc.Stop(ctx)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue