Documentation
¶
Overview ¶
Package daemonclient connects to the stagent daemon, starting it on demand.
Index ¶
Constants ¶
const EnvExe = "STAGENT_EXE"
EnvExe overrides the stagent executable used to auto-start the daemon or detached holders. Tests set it to a built binary (os.Executable would be the test binary).
Variables ¶
This section is empty.
Functions ¶
func DialOrStart ¶
DialOrStart connects to the daemon, starting it detached if nothing answers, and waits up to wait for it to come up. An address another user owns (*paths.OwnerError) is reported as is: no daemon of ours could serve it. The same holds for a run directory of theirs, which StartDaemon's EnsureDirs reports before anything is started.
func StartDaemon ¶
StartDaemon launches `stagent daemon` detached. A second concurrent start is harmless: the loser fails to take the IPC address and exits.
Types ¶
This section is empty.