1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/net/repeater/files/repeater.in
Yen-Ming Lee 3179f20ddc - utilize USR_RC_SUBR for new start script
- handle version-dependent patch better
- bump PORTREVISION
2006-09-30 03:10:46 +00:00

30 lines
652 B
Bash

#!/bin/sh
# PROVIDE: repeater
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable repeater:
#
# repeater_enable="YES"
#
. %%RC_SUBR%%
name=repeater
rcvar=`set_rcvar`
load_rc_config $name
repeater_enable=${repeater_enable:-"NO"}
repeater_server_port=${repeater_server_port:-5500}
repeater_viewer_port=${repeater_viewer_port:-5900}
repeater_log=${repeater_log:-"/var/run/repeater.log"}
command=%%PREFIX%%/sbin/repeater
start_precmd="echo Starting ${name}."
start_cmd="daemon ${command} ${repeater_viewer_port} ${repeater_server_port} > ${repeater_log} 2>&1"
run_rc_command "$1"