Welcome to mirror list, hosted at ThFree Co, Russian Federation.

x-ui.rc - github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cfb542115e181a04f5c3f6e6bbbd3ed868d93d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 $?
}