Skip to content

Commit 8fcba47

Browse files
committed
reviewed Dmitry's code; bumped up version and compiled with latest GO compiler 1.6
1 parent da02f2b commit 8fcba47

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Docker gives a 10 seconds default and then bring the container down. Not ideal f
4343
* -cstart it's a boolean defaulted to true; It gives us the option to start a container without starting Caché; -cstart=true
4444
* -cstop it's a boolean defaulted to true; it gives the option to skip the Caché shutdown; -cstop=false
4545
* -nostu it's a boolean defaulted to false; it allows DB single user startup for maintenance mode
46+
* -cconsole it's a boolean defaulted to false; it shows Caché cconsole.log output in the container logs output
47+
* -version shows ccontainer version
4648

4749
The above flags can also be retrieved via
4850

ccontainermain.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
)
2626

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

174174
// check if cstart or cstop were successfull
175-
// what = what we are checking:
176-
// "up" checks for successful Caché start-up
177-
// "down" checks for successful Caché shutdown
175+
// what = what we are checking:
176+
// "up" checks for successful Caché start-up
177+
// "down" checks for successful Caché shutdown
178178
//
179179
func checkCmdOutcome(what string, inst string) error {
180180
cmd := "ccontrol"
@@ -510,6 +510,7 @@ func main() {
510510
log.Printf("flag cstart: %t\n", cstart)
511511
log.Printf("flag nostu: %t\n", nostu)
512512
log.Printf("flag shmem: %d\n", shmem)
513+
log.Printf("flag cconsole: %d\n", cclog)
513514
log.Printf("flag xstart: %s\n", exeStart)
514515
log.Printf("flag xstop: %s\n", exeStop)
515516
log.Printf("flag v: %s\n", ver)
@@ -597,7 +598,7 @@ func main() {
597598

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

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

distrib/linux/ccontainermain

-63.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)