forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
28 lines
400 B
Bash
28 lines
400 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: proxyper
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
proxyper_enable=${proxyper_enable:-"NO"}
|
|
|
|
dir="%%BINDIR%%"
|
|
user="nobody"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="proxyper"
|
|
rcvar=proxyper_enable
|
|
|
|
pidfile=${dir}/rc5desproxy.pid
|
|
required_files=${dir}/${name}.ini
|
|
|
|
proxyper_user=${user}
|
|
|
|
command=${dir}/${name}
|
|
command_args=">/dev/null 2>&1 &"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|