openbsd-ports/www/nginx/pkg/nginx.rc
william 2d2d548991 Update to nginx-0.8.54 and update MAINTAINER
from Gleydson Soares, thanks

rc issue found by Piotr Sikora, fix by me, ok aja@

ok jasper
2011-04-09 01:21:55 +00:00

20 lines
267 B
Bash
Executable File

#!/bin/sh
#
# $OpenBSD: nginx.rc,v 1.8 2011/04/09 01:21:55 william Exp $
daemon="${TRUEPREFIX}/sbin/nginx"
. /etc/rc.d/rc.subr
pexp="nginx:.*master.*process"
rc_reload() {
${daemon} -s reload
}
rc_stop() {
${daemon} -s stop || pkill -f "^${pexp}"
}
rc_cmd $1