From a2e1c57eafd7dd3dc6ad3bf27249b1f7f69ca81c Mon Sep 17 00:00:00 2001 From: Jacky Date: Wed, 7 May 2025 11:57:15 +0800 Subject: [PATCH] chore: update install.sh --- resources/services/nginx-ui.init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/services/nginx-ui.init b/resources/services/nginx-ui.init index 5139a520..2bd56308 100644 --- a/resources/services/nginx-ui.init +++ b/resources/services/nginx-ui.init @@ -17,13 +17,15 @@ CONFIG="/usr/local/etc/nginx-ui/app.ini" start() { echo "Starting $NAME..." - start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- $CONFIG + # BusyBox compatible syntax + start-stop-daemon -S -b -p $PIDFILE -m -x $DAEMON -- $CONFIG echo "$NAME started" } stop() { echo "Stopping $NAME..." - start-stop-daemon --stop --pidfile $PIDFILE --retry 10 + # BusyBox compatible syntax + start-stop-daemon -K -p $PIDFILE -R 10 rm -f $PIDFILE echo "$NAME stopped" }