MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / systemdAliasFallbackName

Function systemdAliasFallbackName

agent/utils/controller/manager/systemd.go:78–87  ·  view source on GitHub ↗
(serviceName string)

Source from the content-addressed store, hash-verified

76}
77
78func systemdAliasFallbackName(serviceName string) string {
79 switch serviceName {
80 case "sshd", "sshd.service":
81 return "ssh"
82 case "sshd.socket":
83 return "ssh.socket"
84 default:
85 return ""
86 }
87}

Callers 1

OperateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected