Systemd/dep (#165)

* support the dependency config for linux systemd

* remote the binary file incorrectly added
This commit is contained in:
RozenLin
2019-03-26 09:10:25 -07:00
committed by Daniel Theophanes
parent 56787a3ea0
commit 0e5bec1b9e
3 changed files with 13 additions and 1 deletions
+3
View File
@@ -228,6 +228,9 @@ func (s *systemd) Restart() error {
const systemdScript = `[Unit]
Description={{.Description}}
ConditionFileIsExecutable={{.Path|cmdEscape}}
{{range .Dependencies}}
{{.}}
{{end}}
[Service]
StartLimitInterval=5