diff options
-rw-r--r-- | src/initlog.1 | 2 | ||||
-rw-r--r-- | src/initlog.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/initlog.1 b/src/initlog.1 index 87eaf8d3..5d50bf90 100644 --- a/src/initlog.1 +++ b/src/initlog.1 @@ -33,7 +33,7 @@ Execute the specified program, logging anything output to stdout or stderr. .TP .I "\-e, \-\-event=[number]" -Logs that the specified event happened. Usually used in conjuction +Logs that the specified event happened. Used in conjuction with \fB\-\-name\fR. Currently specified events are: .nf \fB1\fR the action completed successfully diff --git a/src/initlog.c b/src/initlog.c index 5905e16c..39579eeb 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -413,6 +413,11 @@ int processArgs(int argc, char **argv, int silent) { fprintf(stderr, _("--name requires one of --event or --string\n")); return -1; } + if (cmdevent && cmd) { + if (!silent) + fprintf(stderr, _("--cmd and --run are incompatible with --event\n")); + return -1; + } if (conffile) { readConfiguration(conffile); } else { |