mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-06-28 02:51:27 +08:00
优化构建和打包
This commit is contained in:
18
packaging/hubproxy.openrc
Normal file
18
packaging/hubproxy.openrc
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="hubproxy"
|
||||
description="Docker and GitHub acceleration proxy server"
|
||||
command="/usr/bin/hubproxy"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
output_log="/var/log/hubproxy.log"
|
||||
error_log="/var/log/hubproxy.log"
|
||||
supervisor="supervise-daemon"
|
||||
respawn_delay=5
|
||||
respawn_max=0
|
||||
|
||||
export CONFIG_PATH="/etc/hubproxy/config.toml"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
}
|
||||
Reference in New Issue
Block a user