summaryrefslogtreecommitdiff
path: root/net/frp/files/frps.in
blob: 66897e56f5efc706145ccbfbb6cdd7cdc87c4a32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# PROVIDE: frps
# REQUIRE: DAEMON NETWORKING
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable frps:
# frps_enable : set to "YES" to enable the daemon, default is "NO"

. /etc/rc.subr

name=frps
rcvar=frps_enable

load_rc_config $name

frps_enable=${frps_enable:-"NO"}

logfile="/var/log/${name}.log"

procname=%%PREFIX%%/bin/frps
command="/usr/sbin/daemon"
command_args="-u %%USER%% -o ${logfile} -t ${name} %%PREFIX%%/bin/frps -c %%PREFIX%%/etc/frps.ini"

run_rc_command "$1"