diff --git a/daemon.go b/daemon.go index 306dc6a..d3ce531 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.8.6 for use with Go (golang) services. +Package daemon 0.8.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_systemd.go b/daemon_linux_systemd.go index 790547e..299b8c4 100644 --- a/daemon_linux_systemd.go +++ b/daemon_linux_systemd.go @@ -201,7 +201,7 @@ After={{.Dependencies}} PIDFile=/var/run/{{.Name}}.pid ExecStartPre=/bin/rm -f /var/run/{{.Name}}.pid ExecStart={{.Path}} {{.Args}} -Restart=on-abort +Restart=on-failure [Install] WantedBy=multi-user.target