-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
45 lines (37 loc) · 994 Bytes
/
main.go
File metadata and controls
45 lines (37 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import (
"log"
"os"
)
var (
buildVersion = "development"
buildSha = "devel"
)
func main() {
defer func() {
exitCode := 0
if r := recover(); r != nil {
exitCode = 1
log.Println("FATAL ERROR! ", r)
}
os.Exit(exitCode)
}()
log.Println("Starting Cloud87 Remote Shell Service")
log.Println("")
log.Println("")
log.Printf("Version: %s@%s\n", buildVersion, buildSha)
log.Println("")
if globalOptions.username != "" {
log.Println("GitHubUser:", globalOptions.username)
}
log.Println("HomeDir: ", globalOptions.homeDir)
log.Println("ShellCmd: ", globalOptions.shellCommand)
log.Println("Port: ", globalOptions.port)
log.Println("IdleTime: ", globalOptions.idleTimeout.String())
log.Println("MaxTime: ", globalOptions.timeLimit.String())
log.Println("GraceTime: ", globalOptions.connectionGrace.String())
if globalOptions.insecureMode {
log.Println("Insecure: YES!! HTTPS ENDPOINTS WILL NOT BE VERIFIED")
}
startSSHService()
}