Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryPath ¶
BinaryPath returns the path to the binary that should be exec'd on restart. For daemon subprocesses (ZAPAROO_APP set), this is the original binary path. Otherwise it is the current executable path.
func Exec ¶
func Exec() error
Exec replaces the current process with the updated binary. On Unix this uses syscall.Exec which atomically replaces the process (same PID). It does not return on success.
func ExecIfRequested ¶
ExecIfRequested checks whether a restart was requested and, if so, re-execs the binary. Returns nil if no restart was requested. On success, the process is replaced (Unix) or a new process is spawned and the old one exits (Windows), so this function does not return on success.
Types ¶
This section is empty.