mirror of
https://github.com/netbirdio/service.git
synced 2026-05-22 17:08:14 -07:00
validate systemctl command
This commit is contained in:
@@ -23,7 +23,7 @@ func isSystemd() bool {
|
||||
if _, err := os.Stat("/run/systemd/system"); err == nil {
|
||||
return true
|
||||
}
|
||||
if _, err = exec.LookPath("systemctl"); err != nil {
|
||||
if _, err := exec.LookPath("systemctl"); err != nil {
|
||||
return false
|
||||
}
|
||||
if _, err := os.Stat("/proc/1/comm"); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user