aports/testing/sing-box/sing-box.initd
Anon Anon 2ab9582dc3 testing/sing-box: new aport
https://sing-box.sagernet.org/
The universal proxy platform.
2023-09-23 04:48:10 +00:00

18 lines
293 B
Bash

#!/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"
depend() {
after net dns
}
reload() {
ebegin "Reloading $RC_SVCNAME"
/bin/kill -HUP $MAINPID
eend $?
}