Skip to content

Commit 66aa2ba

Browse files
committed
Fix help and README.md for notify-sighup
1 parent a4f4f01 commit 66aa2ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Options:
9595
run command after template is regenerated (e.g restart xyz)
9696
-notify-output
9797
log the output(stdout/stderr) of notify command
98-
-notify-sighup docker kill -s HUP container-ID
98+
-notify-sighup container-ID
9999
send HUP signal to container. Equivalent to docker kill -s HUP container-ID
100100
-only-exposed
101101
only include containers with exposed ports

cmd/docker-gen/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func initFlags() {
9696
flag.BoolVar(&notifyOutput, "notify-output", false, "log the output(stdout/stderr) of notify command")
9797
flag.StringVar(&notifyCmd, "notify", "", "run command after template is regenerated (e.g `restart xyz`)")
9898
flag.StringVar(&notifySigHUPContainerID, "notify-sighup", "",
99-
"send HUP signal to container. Equivalent to `docker kill -s HUP container-ID`")
99+
"send HUP signal to container. Equivalent to docker kill -s HUP `container-ID`")
100100
flag.Var(&configFiles, "config", "config files with template directives. Config files will be merged if this option is specified multiple times.")
101101
flag.IntVar(&interval, "interval", 0, "notify command interval (secs)")
102102
flag.BoolVar(&keepBlankLines, "keep-blank-lines", false, "keep blank lines in the output file")

0 commit comments

Comments
 (0)