Skip to content

Commit

Permalink
reviewed Dmitry's code; bumped up version and compiled with latest GO…
Browse files Browse the repository at this point in the history
… compiler 1.6
  • Loading branch information
zrml committed Mar 29, 2016
1 parent da02f2b commit 8fcba47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Docker gives a 10 seconds default and then bring the container down. Not ideal f
* -cstart it's a boolean defaulted to true; It gives us the option to start a container without starting Caché; -cstart=true
* -cstop it's a boolean defaulted to true; it gives the option to skip the Caché shutdown; -cstop=false
* -nostu it's a boolean defaulted to false; it allows DB single user startup for maintenance mode
* -cconsole it's a boolean defaulted to false; it shows Caché cconsole.log output in the container logs output
* -version shows ccontainer version

The above flags can also be retrieved via

Expand Down
11 changes: 6 additions & 5 deletions ccontainermain.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

const (
version = "0.4"
version = "0.5"
dbg = false
k316 = 3.16 // the kernel version that allows containers to use more useful ssmmmax seg value
pre316MaxShmall = 8192
Expand Down Expand Up @@ -172,9 +172,9 @@ func startCaché(inst string, nostu bool, cclog bool) (bool, error) {
}

// check if cstart or cstop were successfull
// what = what we are checking:
// "up" checks for successful Caché start-up
// "down" checks for successful Caché shutdown
// what = what we are checking:
// "up" checks for successful Caché start-up
// "down" checks for successful Caché shutdown
//
func checkCmdOutcome(what string, inst string) error {
cmd := "ccontrol"
Expand Down Expand Up @@ -510,6 +510,7 @@ func main() {
log.Printf("flag cstart: %t\n", cstart)
log.Printf("flag nostu: %t\n", nostu)
log.Printf("flag shmem: %d\n", shmem)
log.Printf("flag cconsole: %d\n", cclog)
log.Printf("flag xstart: %s\n", exeStart)
log.Printf("flag xstop: %s\n", exeStop)
log.Printf("flag v: %s\n", ver)
Expand Down Expand Up @@ -597,7 +598,7 @@ func main() {

// Block until a signal is received_____________
sig := <-cSig
log.Printf("Signal trapped: %s; %d\n", sig, sig)
log.Printf("Signal trapped; sig. %s; %d\n", sig, sig)

// if SIG*... received then run shutdown

Expand Down
Binary file modified distrib/linux/ccontainermain
Binary file not shown.

0 comments on commit 8fcba47

Please sign in to comment.