1
This commit is contained in:
16
service/bird-lgproxy-go
Normal file
16
service/bird-lgproxy-go
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="${RC_SVCNAME}"
|
||||
pidfile="/run/$name.pid"
|
||||
# 强制使用 root 权限
|
||||
command_user="root:root"
|
||||
command="/usr/bin/bird-lgproxy-go"
|
||||
: ${command_user:="bird-lgproxy-go:bird"}
|
||||
command_background=true
|
||||
|
||||
: ${output_logger="logger -t bird-lgproxy-go -p daemon.info >/dev/null 2>&1"}
|
||||
: ${error_logger="logger -t bird-lgproxy-go -p daemon.warning >/dev/null 2>&1"}
|
||||
|
||||
depend() {
|
||||
need bird
|
||||
}
|
||||
Reference in New Issue
Block a user