From 2cabf5788736e478e5435c63f8cae39d505b5cb7 Mon Sep 17 00:00:00 2001 From: ma_jiangang Date: Thu, 17 Dec 2020 16:42:55 +0800 Subject: [PATCH 1/2] fixed After param of systemDConfig --- daemon_linux_systemd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon_linux_systemd.go b/daemon_linux_systemd.go index f7a8ebc..dff13c8 100644 --- a/daemon_linux_systemd.go +++ b/daemon_linux_systemd.go @@ -213,7 +213,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 From 382d1f8d4a8d58216e24b60bf82bc8d536356341 Mon Sep 17 00:00:00 2001 From: ma_jiangang Date: Thu, 17 Dec 2020 16:42:55 +0800 Subject: [PATCH 2/2] fixed After param of systemDConfig fix: after param of systemDConfig --- README.md | 4 ++-- daemon_linux_systemd.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index abb8dda..6338c47 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 @@ -246,4 +246,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 f7a8ebc..dff13c8 100644 --- a/daemon_linux_systemd.go +++ b/daemon_linux_systemd.go @@ -213,7 +213,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