mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
26a0dc74c2
Minimal secure webserver. Fast and efficient, no cgi-bin support PR: 39769 Submitted by: Gea-Suan Lin <gslin@Infomath.math.NCTU.edu.tw>
18 lines
238 B
Bash
18 lines
238 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -x %%PREFIX%%/sbin/dhttpd ]; then
|
|
%%PREFIX%%/sbin/dhttpd && echo -n ' dhttpd'
|
|
fi
|
|
;;
|
|
stop)
|
|
killall dhttpd && echo -n ' dhttpd'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|