mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Patch service_upstart
This commit is contained in:
parent
10f0503d50
commit
3e4b7671d1
1 changed files with 0 additions and 7 deletions
7
vendor/github.com/kardianos/service/service_upstart_linux.go
generated
vendored
7
vendor/github.com/kardianos/service/service_upstart_linux.go
generated
vendored
|
@ -21,13 +21,6 @@ func isUpstart() bool {
|
|||
if _, err := os.Stat("/sbin/upstart-udev-bridge"); err == nil {
|
||||
return true
|
||||
}
|
||||
if _, err := os.Stat("/sbin/init"); err == nil {
|
||||
if out, err := exec.Command("/sbin/init", "--version").Output(); err == nil {
|
||||
if strings.Contains(string(out), "init (upstart") {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue