Add rcs id and shebang.
Protect variable names.
This commit is contained in:
parent
51de3dc41b
commit
37d4ed9f1a
@ -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/
|
||||
|
||||
|
@ -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}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user