mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
chore: update install.sh
This commit is contained in:
parent
1ba1da0d5d
commit
a2e1c57eaf
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue