Files
ctrld/cmd/cli/service_others.go
2025-10-09 17:49:21 +07:00

18 lines
331 B
Go

//go:build !windows
package cli
import (
"os"
)
func hasElevatedPrivilege() (bool, error) {
return os.Geteuid() == 0, nil
}
func openLogFile(path string, flags int) (*os.File, error) {
return os.OpenFile(path, flags, os.FileMode(0o600))
}
func ConfigureWindowsServiceFailureActions(serviceName string) error { return nil }