diff --git a/daemon.go b/daemon.go index 5bcdba8..51e8994 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.7.0 for use with Go (golang) services. +Package daemon 0.8.0 for use with Go (golang) services. Package daemon provides primitives for daemonization of golang services. This package is not provide implementation of user daemon, @@ -184,3 +184,8 @@ type Daemon interface { func New(name, description string, dependencies ...string) (Daemon, error) { return newDaemon(strings.Join(strings.Fields(name), "_"), description, dependencies) } + +// ExecPath tries to get executable path +func ExecPath() (string, error) { + return execPath() +}