Go 1.10.2
This commit is contained in:
parent
084bfe67fd
commit
3104dcbd70
|
@ -3,7 +3,7 @@ language: go
|
|||
os:
|
||||
- linux
|
||||
go:
|
||||
- 1.10.1
|
||||
- 1.10.2
|
||||
script:
|
||||
- gimme --list
|
||||
- echo $TRAVIS_GO_VERSION
|
||||
|
@ -169,7 +169,7 @@ deploy:
|
|||
skip_cleanup: true
|
||||
on:
|
||||
repo: jedisct1/dnscrypt-proxy
|
||||
condition: "${TRAVIS_GO_VERSION} == 1.10.1"
|
||||
condition: "${TRAVIS_GO_VERSION} == 1.10.2"
|
||||
tags: true
|
||||
before_deploy:
|
||||
- mkdir -p /tmp/bin /tmp/lib /tmp/include
|
||||
|
|
|
@ -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…
Reference in New Issue