diff --git a/daemon.go b/daemon.go index 37d2abf..1d60d02 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.2.6 for use with Go (golang) services. +Package daemon 0.2.7 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 fc46126..8538c7d 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 >> $stdoutlog 2>> $stderrlog & + $exec >> $stderrlog 2>> $stdoutlog & echo $! > $pidfile touch $lockfile success