op-packages/luci-app-passwall/root/etc/init.d/passwall_server
github-actions[bot] 9931d7c86f 🍓 Sync 2026-06-05 21:57:56
2026-06-05 21:57:56 +08:00

32 lines
407 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
boot_func() {
sleep 90
restart
}
boot() {
boot_func >/dev/null 2>&1 &
}
start() {
lua /usr/lib/lua/luci/passwall/server_app.lua start
}
stop() {
lua /usr/lib/lua/luci/passwall/server_app.lua stop
}
restart() {
stop
start
}
reload() {
echo "Warning: This service does not support configuration reloading"
echo "Performing full restart instead..."
restart
}