fix(alpine): restart_xray uses rc-service; OpenRC reload reads pidfile contents

`14. Restart Xray` failed on Alpine with `systemctl: command not found` —
restart_xray was the only service action missing an Alpine branch. While
fixing it, the OpenRC reload action was passing the pidfile path to `kill`
instead of the PID inside it, so `rc-service x-ui reload` would have
failed too.
This commit is contained in:
MHSanaei
2026-05-11 09:05:36 +02:00
parent 9f06bffbea
commit 4c2915586c
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -13,6 +13,6 @@ start_pre(){
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
kill -USR1 $pidfile
kill -USR1 $(cat $pidfile)
eend $?
}