Add rcs id and shebang.

Protect variable names.
This commit is contained in:
ajacoutot 2010-11-04 07:54:51 +00:00
parent 51de3dc41b
commit 37d4ed9f1a
2 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.29 2010/11/04 07:39:44 robert Exp $
# $OpenBSD: Makefile,v 1.30 2010/11/04 07:54:51 ajacoutot Exp $
COMMENT= robust and small HTTP server and mail proxy server
DISTNAME= nginx-0.8.53
CATEGORIES= www
REVISION= 0
REVISION= 1
HOMEPAGE= http://nginx.net/

View File

@ -1,14 +1,18 @@
#!/bin/sh
#
# $OpenBSD: nginx.rc,v 1.2 2010/11/04 07:54:51 ajacoutot Exp $
. /etc/rc.d/rc.subr
daemon=${TRUEPREFIX}/sbin/nginx
pexp="nginx:.*master.*process"
rc_reload() {
$daemon -s reload >/dev/null
${daemon} -s reload >/dev/null
}
rc_stop() {
$daemon -s stop >/dev/null
${daemon} -s stop >/dev/null
[ $? -gt 0 ] && pkill -f "^${pexp}"
}