mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-27 02:00:08 +00:00
18 lines
345 B
Plaintext
18 lines
345 B
Plaintext
#!/sbin/openrc-run
|
|||
|
|
|
||
|
|
name=$RC_SVCNAME
|
||
|
|
description="sing-box service"
|
||
|
|
supervisor="supervise-daemon"
|
||
|
|
command="/usr/bin/sing-box"
|
||
|
|
command_args="-D /var/lib/sing-box -C /etc/sing-box run"
|
||
|
|
extra_started_commands="reload"
|
||
|
|
|
||
|
|
depend() {
|
||
|
|
after net dns
|
||
|
|
}
|
||
|
|
|
||
|
|
reload() {
|
||
|
|
ebegin "Reloading $RC_SVCNAME"
|
||
|
|
$supervisor "$RC_SVCNAME" --signal HUP
|
||
|
|
eend $?
|
||
|
|
}
|