diff options
| author | Sergey A. Osokin <osa@FreeBSD.org> | 2004-10-21 17:54:45 +0000 |
|---|---|---|
| committer | Sergey A. Osokin <osa@FreeBSD.org> | 2004-10-21 17:54:45 +0000 |
| commit | bd4066ee457a1089e012ea4b1afe800f4db21264 (patch) | |
| tree | 97335de753ae58ffd94ec09aa4426c0844ac6139 /www/nginx-devel/files/nginx.sh | |
| parent | Upgrade to latest snapshot. (diff) | |
Add nginx (Engine X) - small and fast WWW-server.
Special thanks to: marck
Some ideas from PR: 72830
Diffstat (limited to 'www/nginx-devel/files/nginx.sh')
| -rw-r--r-- | www/nginx-devel/files/nginx.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/www/nginx-devel/files/nginx.sh b/www/nginx-devel/files/nginx.sh new file mode 100644 index 000000000000..dee8f0cad5be --- /dev/null +++ b/www/nginx-devel/files/nginx.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: nginx +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown + +# Define these apache_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/apache +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +nginx_enable=${nginx_enable-"NO"} +nginx_flags=${nginx_flags-""} +nginx_pidfile=${nginx_pidfile-"/var/run/nginx.pid"} + +. %%RC_SUBR%% + +name="nginx" +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/nginx" + +load_rc_config $name + +pidfile="${nginx_pidfile}" + +start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command} ${nginx_flags}" + +run_rc_command "$1" |
