aports/community/frp/frps.initd
2023-10-31 06:36:38 +00:00

19 lines
290 B
Bash

#!/sbin/openrc-run
name=frps
description="frp server"
command="/usr/bin/$name"
supervisor=supervise-daemon
: ${cfgfile:=/etc/frp/$RC_SVCNAME.toml}
command_args="-c $cfgfile"
pidfile="/run/$RC_SVCNAME.pid"
: ${respawn_delay:=5}
: ${respawn_max:=0}
depend() {
need net
after firewall
}