summaryrefslogtreecommitdiffstats
path: root/httpd.service
diff options
context:
space:
mode:
authorJan Kaluza <jkaluza@redhat.com>2013-11-01 12:43:40 +0100
committerJan Kaluza <jkaluza@redhat.com>2013-11-01 12:43:40 +0100
commit51fe77bc1f4de5a7c1c3a8adb0061210c32ec9e4 (patch)
treeb46c3f69c016d306d169356162ec625e1691f146 /httpd.service
parent8de85ede524667039767771fd54140995d4cad7f (diff)
downloadhttpd-51fe77bc1f4de5a7c1c3a8adb0061210c32ec9e4.tar.gz
httpd-51fe77bc1f4de5a7c1c3a8adb0061210c32ec9e4.tar.xz
httpd-51fe77bc1f4de5a7c1c3a8adb0061210c32ec9e4.zip
systemd: use {MAINPID} notation to ensure /bin/kill has always the second arg
Diffstat (limited to 'httpd.service')
-rw-r--r--httpd.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.service b/httpd.service
index 2dc16b9..04c43e2 100644
--- a/httpd.service
+++ b/httpd.service
@@ -24,7 +24,7 @@ Environment=LANG=C
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
-ExecStop=/bin/kill -WINCH $MAINPID
+ExecStop=/bin/kill -WINCH ${MAINPID}
# We want systemd to give httpd some time to finish gracefully, but still want
# it to kill httpd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the