Documentation
¶
Index ¶
- func New() resource.Driver
- type T
- func (t *T) DriverID() driver.ID
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Signal(ctx context.Context, sig syscall.Signal) error
- func (t *T) Start(ctx context.Context) (err error)
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
T is the driver structure.
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
func (*T) Signal ¶
Signal implements the signal action, as the signal of an install line asks a reload of the application whose configuration file changed. It sends sig to the processes the stop terminates, as the kill keyword says: every process of the resource by default, which reaches the application under the shell running its start command, and the process the start command launched with kill = parent, for a server passing a signal on to its workers as it chooses.
func (*T) Stop ¶
Stop runs the stop command, if any, then terminates the processes the start command left running, as v2 did: a stop command telling the application to stop, or cleaning after it, does not always end the processes it was started as, and the resource would stay up. A stop command set to false does nothing.