Files
sing-box-extended-mirror/experimental/boxdd/cmd_run_linux.go
T

19 lines
360 B
Go
Raw Normal View History

2026-07-13 11:23:59 +08:00
package main
import (
"os"
E "github.com/sagernet/sing/common/exceptions"
)
func runService() (bool, error) {
if os.Getenv("INVOCATION_ID") != "" && listenAddress != "" {
return true, E.New("--listen is not allowed in service mode")
}
return false, nil
}
func preparePlatformWorkingDirectory() error {
return os.MkdirAll(workingDirectory, 0o700)
}