2
0

ttrss-openrc-apache 533 B

123456789101112131415161718192021222324
  1. #!/sbin/runscript
  2. depend() {
  3. need ntpd
  4. }
  5. start() {
  6. ebegin "Starting Apache (with wrapper)"
  7. start-stop-daemon --background --start --exec /bootstrap/start.sh \
  8. --make-pidfile --pidfile /var/run/apache-start.pid
  9. eend $?
  10. }
  11. stop() {
  12. ebegin "Stopping Apache (with wrapper)"
  13. start-stop-daemon --stop --exec /bootstrap/start.sh \
  14. --pidfile /var/run/apache-start.pid
  15. start-stop-daemon --stop --exec httpd \
  16. --pidfile /var/run/apache2/httpd.pid
  17. eend $?
  18. }
  19. # vim: set ft=sh bkc=yes: