diff --git a/daemon.go b/daemon.go index 1d60d02..a815a6e 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.2.7 for use with Go (golang) services. +Package daemon 0.2.8 for use with Go (golang) services. Package daemon provides primitives for daemonization of golang services. This package is not provide implementation of user daemon, diff --git a/daemon_linux_systemv.go b/daemon_linux_systemv.go index 8538c7d..fc46126 100644 --- a/daemon_linux_systemv.go +++ b/daemon_linux_systemv.go @@ -244,7 +244,7 @@ start() { if ! [ -f $pidfile ]; then printf "Starting $servname:\t" echo "$(date)" >> $stdoutlog - $exec >> $stderrlog 2>> $stdoutlog & + $exec >> $stdoutlog 2>> $stderrlog & echo $! > $pidfile touch $lockfile success