mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
995ac1fee4
so it can be called within an path or dir. e.g. in: /usr/local/etc/rc.local/apache.sh and in /etc/rc.conf: local_startup="/usr/local/etc/rc.local" Approved by: ache
16 lines
307 B
Bash
16 lines
307 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
[ -x %%PREFIX%%/sbin/apachectl ] && %%PREFIX%%/sbin/apachectl start > /dev/null && echo -n ' apache'
|
|
;;
|
|
stop)
|
|
[ -r /var/run/httpd.pid ] && %%PREFIX%%/sbin/apachectl stop > /dev/null && echo -n ' apache'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|