X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=www-servers%2Fapache%2Ffiles%2Fapache2.2.service;fp=www-servers%2Fapache%2Ffiles%2Fapache2.2.service;h=76f783a423b956514d041aa2b35807d478d08e78;hb=5400e6558e6ddfef4ec3668ce187f2828155f776;hp=0000000000000000000000000000000000000000;hpb=f3f2d7b3de12980cf06e79a21e6ed65dadad959a;p=portage-squeep diff --git a/www-servers/apache/files/apache2.2.service b/www-servers/apache/files/apache2.2.service new file mode 100644 index 0000000..76f783a --- /dev/null +++ b/www-servers/apache/files/apache2.2.service @@ -0,0 +1,19 @@ +[Unit] +Description=The Apache HTTP Server +After=network.target remote-fs.target nss-lookup.target + +[Service] +EnvironmentFile=/etc/conf.d/apache2 +ExecStart=/usr/sbin/apache2 $APACHE2_OPTS -DFOREGROUND +ExecReload=/usr/sbin/apache2 $APACHE2_OPTS -k graceful +ExecStop=/usr/sbin/apache2 $APACHE2_OPTS -k graceful-stop +# 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 +# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give +# httpd time to finish. +KillSignal=SIGCONT +PrivateTmp=true + +[Install] +WantedBy=multi-user.target