mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Go 1.10.2
This commit is contained in:
parent
084bfe67fd
commit
3104dcbd70
2 changed files with 11 additions and 2 deletions
9
vendor/github.com/kardianos/service/service_systemd_linux.go
generated
vendored
9
vendor/github.com/kardianos/service/service_systemd_linux.go
generated
vendored
|
@ -156,6 +156,9 @@ func (s *systemd) Restart() error {
|
|||
const systemdScript = `[Unit]
|
||||
Description={{.Description}}
|
||||
ConditionFileIsExecutable={{.Path|cmdEscape}}
|
||||
{{range .UnitAdd}}
|
||||
{{.Key}}={{.Value}}
|
||||
{{end}}
|
||||
|
||||
[Service]
|
||||
StartLimitInterval=5
|
||||
|
@ -169,7 +172,13 @@ ExecStart={{.Path|cmdEscape}}{{range .Arguments}} {{.|cmd}}{{end}}
|
|||
Restart=always
|
||||
RestartSec=120
|
||||
EnvironmentFile=-/etc/sysconfig/{{.Name}}
|
||||
{{range .ServiceAdd}}
|
||||
{{.Key}}={{.Value}}
|
||||
{{end}}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
{{range .InstallAdd}}
|
||||
{{.Key}}={{.Value}}
|
||||
{{end}}
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue