Documentation
¶
Overview ¶
Package daemon is responsible ot other opensvc daemons start/stop
It is responsible for other sub daemons (listener, discover, scheduler, hb...)
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( WatchdogUsecEnv = "WATCHDOG_USEC" WatchdogMinInterval = 2 * time.Second ClusterInitialStatePropagateInterval = 1000 * time.Millisecond // ErrStoppedDuringStart is the error Start returns when a stop was // requested during the startup, and done: the daemon is stopped, as // asked. ErrStoppedDuringStart = errors.New("daemon stopped during its startup") )
Functions ¶
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func (*T) RequestStop ¶
RequestStop asks the daemon to stop. Only the first request counts.
The daemon stops at once when started. During the startup, Start stops it once the starting component is started, and returns ErrStoppedDuringStart: stopping components Start is about to start would race with it.