pkgsrc/www/unit/files/unit.sh
otis 4bd6fd5a94 www/unit: import unit-1.22.0
NGINX Unit is a polyglot app server, a reverse proxy, and a static file server,
available for Unix-like systems. It was built by nginx team members from
scratch to be highly efficient and fully configurable at runtime.

Vast majority of work done by Sergey A. Osokin <osa@FreeBSD.org>

WWW: http://unit.nginx.org/
2021-02-14 11:56:57 +00:00

17 lines
300 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: unit.sh,v 1.1 2021/02/14 11:56:57 otis Exp $
#
# PROVIDE: unit
# REQUIRE: DAEMON
. /etc/rc.subr
name="unit"
rcvar=${name}
command="@PREFIX@/sbin/${name}d"
pidfile="@VARBASE@/run/${name}.pid"
start_precmd="ulimit -n 2048"
load_rc_config $name
run_rc_command "$1"