diff --git a/README.md b/README.md index 27dd650..f739f54 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ while creating service. [Unit] Description={{.Description}} Requires={{.Dependencies}} -After={{.Dependencies}} +After={{.After}} [Service] PIDFile=/var/run/{{.Name}}.pid @@ -247,4 +247,4 @@ Thank you for your understanding! ## License -[MIT Public License](https://github.com/takama/daemon/blob/master/LICENSE) +[MIT Public License](https://github.com/takama/daemon/blob/master/LICENSE) \ No newline at end of file diff --git a/daemon_linux_systemd.go b/daemon_linux_systemd.go index d6e6cca..2e1b3c2 100644 --- a/daemon_linux_systemd.go +++ b/daemon_linux_systemd.go @@ -214,7 +214,7 @@ func (linux *systemDRecord) SetTemplate(tplStr string) error { var systemDConfig = `[Unit] Description={{.Description}} Requires={{.Dependencies}} -After={{.Dependencies}} +After={{.After}} [Service] PIDFile=/var/run/{{.Name}}.pid