1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/frp/frpc.initd
2021-07-05 04:43:56 +00:00

24 lines
No EOL
401 B
Text

#!/sbin/openrc-run
name=frpc
description="frp client"
command="/usr/bin/$name"
supervisor=supervise-daemon
: ${cfgfile:=/etc/frp/$RC_SVCNAME.ini}
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
}