- Change variable in crtmpserver.in
- BUMP PORTREVISION Submitted by: dougb@ (via e-mail)
This commit is contained in:
parent
cebfd44d12
commit
f66e9554e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=270068
2 changed files with 12 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= crtmpserver
|
||||
PORTVERSION= 0.355
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://freebsd.rtmpd.com/
|
||||
|
||||
|
|
|
@ -25,13 +25,21 @@ rcvar=${name}_enable
|
|||
command=%%PREFIX%%/sbin/${name}
|
||||
pidfile=/var/run/${name}.pid
|
||||
|
||||
start_postcmd="${name}_poststart"
|
||||
|
||||
crtmpserver_poststart()
|
||||
{
|
||||
pgrep crtmpserver > /var/run/crtmpserver.pid
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${crtmpserver_enable="NO"}
|
||||
: ${crtmpserver_config="%%PREFIX%%/etc/crtmpserver.lua"}
|
||||
: ${crtmpserver_username="%%USERS%%"}
|
||||
|
||||
crtmpserver_username="%%USERS%%"
|
||||
command_args="--daemon --uid=`id -u ${crtmpserver_username}` $crtmpserver_config"
|
||||
required_files="$crtmpserver_config"
|
||||
|
||||
command_args="--daemon --uid=`id -u ${crtmpserver_username}` $required_files"
|
||||
|
||||
run_rc_command "$1"
|
||||
ps -axo pid,comm|grep crtmpserver|cut -d " " -f1 >/var/run/crtmpserver.pid
|
||||
|
|
Loading…
Reference in a new issue