mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-06 22:12:23 +08:00
chore: update install.sh
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user