Documentation
¶
Overview ¶
Code forked from Docker project
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SdNotify ¶
SdNotify sends a message to the init daemon. It is common to ignore the error. If `unsetEnvironment` is true, the environment variable `NOTIFY_SOCKET` will be unconditionally unset.
It returns one of the following: (false, nil) - notification not supported (i.e. NOTIFY_SOCKET is unset) (false, err) - notification supported, but failure happened (e.g. error connecting to NOTIFY_SOCKET or while sending data) (true, nil) - notification supported, data has been sent
func SdWatchdogEnabled ¶
SdWatchdogEnabled return watchdog information for a service. Process should send daemon.SdNotify("WATCHDOG=1") every time / 2. If `unsetEnvironment` is true, the environment variables `WATCHDOG_USEC` and `WATCHDOG_PID` will be unconditionally unset.
It returns one of the following: (0, nil) - watchdog isn't enabled or we aren't the watched PID. (0, err) - an error happened (e.g. error converting time). (time, nil) - watchdog is enabled and we can send ping.
time is delay before inactive service will be killed.
Types ¶
This section is empty.