mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-02-27 20:53:01 +00:00
18 lines
No EOL
286 B
Text
18 lines
No EOL
286 B
Text
#!/sbin/openrc-run
|
|
|
|
command="/usr/local/x-ui/x-ui"
|
|
command_background=true
|
|
pidfile="/run/x-ui.pid"
|
|
description="x-ui Service"
|
|
procname="x-ui"
|
|
depend() {
|
|
need net
|
|
}
|
|
start_pre(){
|
|
cd /usr/local/x-ui
|
|
}
|
|
reload() {
|
|
ebegin "Reloading ${RC_SVCNAME}"
|
|
kill -USR1 $pidfile
|
|
eend $?
|
|
} |