mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
ea103f8b13
- Unmark FORBIDDEN PR: ports/39477 Submitted by: maintainer
18 lines
411 B
Bash
18 lines
411 B
Bash
#!/bin/sh
|
|
PREFIX=@@PREFIX@@
|
|
|
|
case "$1" in
|
|
start)
|
|
[ "@@SSL@@" = "ssl" -a -f "$PREFIX/etc/apache2/ssl.crt/server.crt" ] && SSL=ssl
|
|
[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /dev/null && echo -n ' apache2'
|
|
;;
|
|
stop)
|
|
[ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache2'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|