2018-08-10 02:27:17 +02:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
2018-08-16 11:36:18 +02:00
|
|
|
depend() {
|
|
|
|
need ntpd
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-10 02:27:17 +02:00
|
|
|
start() {
|
|
|
|
ebegin "Starting Apache (with wrapper)"
|
|
|
|
start-stop-daemon --background --start --exec /bootstrap/start.sh \
|
|
|
|
--make-pidfile --pidfile /var/run/apache-start.pid
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping Apache (with wrapper)"
|
|
|
|
start-stop-daemon --stop --exec /bootstrap/start.sh \
|
|
|
|
--pidfile /var/run/apache-start.pid
|
2018-08-10 10:12:06 +02:00
|
|
|
start-stop-daemon --stop --exec httpd \
|
|
|
|
--pidfile /var/run/apache2/httpd.pid
|
2018-08-10 02:27:17 +02:00
|
|
|
eend $?
|
|
|
|
}
|
2018-08-16 11:36:18 +02:00
|
|
|
# vim: set ft=sh bkc=yes:
|