Commit 2565f82d authored by Kamil Trzciński's avatar Kamil Trzciński

Fixed service creation options

parent cdd67ee9
......@@ -69,12 +69,18 @@ func RunServiceControl(c *cli.Context) {
UserName: c.String("user"),
}
if runtime.GOOS == "darwin" {
switch runtime.GOOS {
case "darwin":
svcConfig.UserService = true
svcConfig.Option = service.KeyValue{
"KeepAlive": true,
"RunAtLoad": true,
"Password": c.String("password"),
"KeepAlive": true,
"RunAtLoad": true,
"SessionCreate": true,
}
case "windows":
svcConfig.Option = service.KeyValue{
"Password": c.String("password"),
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment