Skip to content

Commit 5fb1eb9

Browse files
authored
Merge pull request #215 from dmitrygusev/notify-sighup
Fix help and README.md for notify-sighup
2 parents c9349c8 + 4342340 commit 5fb1eb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ 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
99-
send HUP signal to container. Equivalent to docker kill -s HUP container-ID
98+
-notify-sighup container-ID
99+
send HUP signal to container. Equivalent to 'docker kill -s HUP container-ID'
100100
-only-exposed
101101
only include containers with exposed ports
102102
-only-published

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)