mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
Changed launch command, and loop that checks if ols is running
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
#!/bin/bash
|
||||
chown 999:999 /usr/local/lsws/conf -R
|
||||
chown 999:1000 /usr/local/lsws/admin/conf -R
|
||||
exec "$@"
|
||||
|
||||
#start ols and ping it every 60 second to make sure it running, if not exist container (assuming ols crashed)
|
||||
$@
|
||||
while true; do
|
||||
if ! /usr/local/lsws/bin/lswsctrl status | grep 'litespeed is running with PID *' > /dev/null; then
|
||||
break
|
||||
fi
|
||||
sleep 60
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user