From 3030e65e06c21c4b89ba3c20178e98571e73ef31 Mon Sep 17 00:00:00 2001 From: maxxant Date: Wed, 30 Nov 2016 17:02:15 +0300 Subject: [PATCH 1/3] fix check linux subsystem priority. A newer subsystem must be checked first --- daemon_linux.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon_linux.go b/daemon_linux.go index 03a1e5c..633f20c 100644 --- a/daemon_linux.go +++ b/daemon_linux.go @@ -11,12 +11,13 @@ import ( // Get the daemon properly func newDaemon(name, description string, dependencies []string) (Daemon, error) { - if _, err := os.Stat("/sbin/initctl"); err == nil { - return &upstartRecord{name, description, dependencies}, nil - } + // newer subsystem must be checked first if _, err := os.Stat("/run/systemd/system"); err == nil { return &systemDRecord{name, description, dependencies}, nil } + if _, err := os.Stat("/sbin/initctl"); err == nil { + return &upstartRecord{name, description, dependencies}, nil + } return &systemVRecord{name, description, dependencies}, nil } From bf162c9eb095863f3ec617d2699ccbe83bf3d63f Mon Sep 17 00:00:00 2001 From: Igor Dolzhikov Date: Thu, 1 Dec 2016 22:02:00 +0700 Subject: [PATCH 2/3] Cotributers --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d9f45b7..74fdef6 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,7 @@ func main() { - [Eric Halpern](https://github.com/ehalpern) - [Yota](https://github.com/nus) - [Erkan Durmus](https://github.com/derkan) +- [maxxant](https://github.com/maxxant) All the contributors are welcome. If you would like to be the contributor please accept some rules. - The pull requests will be accepted only in "develop" branch From 840798d62e97a064d81d9e6ecb4e6907d6a5780a Mon Sep 17 00:00:00 2001 From: Igor Dolzhikov Date: Thu, 1 Dec 2016 22:02:36 +0700 Subject: [PATCH 3/3] Bumped version number to 0.8.1 --- daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index 51e8994..961133e 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.8.0 for use with Go (golang) services. +Package daemon 0.8.1 for use with Go (golang) services. Package daemon provides primitives for daemonization of golang services. This package is not provide implementation of user daemon,