Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. [Unit]
  2. Description=The Apache HTTP Server
  3. After=network.target remote-fs.target nss-lookup.target
  4.  
  5. [Service]
  6. EnvironmentFile=/etc/conf.d/apache2
  7. ExecStart=/usr/sbin/apache2 $APACHE2_OPTS -DFOREGROUND
  8. ExecReload=/usr/sbin/apache2 $APACHE2_OPTS -k graceful
  9. ExecStop=/usr/sbin/apache2 $APACHE2_OPTS -k graceful-stop
  10. # We want systemd to give httpd some time to finish gracefully, but still want
  11. # it to kill httpd after TimeoutStopSec if something went wrong during the
  12. # graceful stop. Normally, Systemd sends SIGTERM signal right after the
  13. # ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
  14. # httpd time to finish.
  15. KillSignal=SIGCONT
  16. PrivateTmp=true
  17.  
  18. [Install]
  19. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement