MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / isSystemd

Function isSystemd

cmd/cloudflared/linux_service.go:195–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193}
194
195func isSystemd() bool {
196 if _, err := os.Stat("/run/systemd/system"); err == nil {
197 return true
198 }
199 return false
200}
201
202func installLinuxService(c *cli.Context) error {
203 log := logger.CreateLoggerFromContext(c, logger.EnableTerminalLog)

Callers 2

installLinuxServiceFunction · 0.85
uninstallLinuxServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected