18 lines
265 B
Bash
Executable File
18 lines
265 B
Bash
Executable File
#!/bin/sh
|
|
. /etc/rc.subr
|
|
|
|
start() {
|
|
echo -n " * Starting lighttpd: "
|
|
if ${lighttpd_program} ${lighttpd_flags}; then
|
|
echo "Ok"
|
|
else
|
|
echo "Failed"
|
|
fi
|
|
}
|
|
stop() {
|
|
echo " * Stopping lighttpd..."
|
|
killpid "${lighttpd_pidfile}"
|
|
}
|
|
|
|
rc_run_command "$1" "lighttpd"
|