summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-02-26 16:40:26 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-02-26 16:41:28 +0100
commit02437d8a3c0a83d2e20af8f05f071233ad1d3339 (patch)
tree98aafe30392e112ea119650f1d4c50fe2a36d405
parentapache2ctl: don't fail with mutli-line APACHE2_OPTS in conf.d file. (diff)
downloadapache-02437d8a3c0a83d2e20af8f05f071233ad1d3339.tar.gz
apache-02437d8a3c0a83d2e20af8f05f071233ad1d3339.tar.bz2
apache-02437d8a3c0a83d2e20af8f05f071233ad1d3339.zip
apache2ctl: Don't show grep usage message with leading "-" options.
Thanks-to: Freenode IRC-user "omelius" Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--2.4/scripts/apache2ctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/2.4/scripts/apache2ctl b/2.4/scripts/apache2ctl
index 9012520..8031b8b 100644
--- a/2.4/scripts/apache2ctl
+++ b/2.4/scripts/apache2ctl
@@ -20,7 +20,7 @@ load_rc_config() {
# If first parameter is a verb defined in $RC_VERBS, pass the command to init script.
# In other cases, compile command line and run the command on apache binary.
-if echo "${RC_VERBS}" | grep -q "${1}" ; then
+if echo "${RC_VERBS}" | grep -q -- "${1}" ; then
exec /etc/init.d/apache2 "${@}"
else
load_rc_config || exit 1