mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
3179f20ddc
- handle version-dependent patch better - bump PORTREVISION
30 lines
652 B
Bash
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"
|