mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
25 lines
403 B
Bash
25 lines
403 B
Bash
#!/sbin/openrc-run
|
|
|
|
name=frpc
|
|
description="frp client"
|
|
command="/usr/bin/$name"
|
|
supervisor=supervise-daemon
|
|
|
|
: ${cfgfile:=/etc/frp/$RC_SVCNAME.toml}
|
|
command_args="-c $cfgfile"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
extra_started_commands="reload"
|
|
description_reload="Reload configuration"
|
|
|
|
: ${respawn_delay:=5}
|
|
: ${respawn_max:=0}
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
reload() {
|
|
frpc reload -c $cfgfile
|
|
}
|