|
@ -490,7 +490,7 @@ fi |
|
|
create_script_emperor() { |
|
|
create_script_emperor() { |
|
|
cat > /usr/local/bin/$SERVICE.sh <<EOF |
|
|
cat > /usr/local/bin/$SERVICE.sh <<EOF |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
/home/$USERNAME/$APP/$VENV/bin/uwsgi --emperor /etc/uwsgi/vassals --uid www-data --gid www-data |
|
|
/home/$USERNAME/$APP/$VENV/bin/uwsgi --emperor /etc/uwsgi/vassals --uid centos --gid centos |
|
|
EOF |
|
|
EOF |
|
|
chmod +x /usr/local/bin/$SERVICE.sh |
|
|
chmod +x /usr/local/bin/$SERVICE.sh |
|
|
if [[ $? -ge 1 ]]; then |
|
|
if [[ $? -ge 1 ]]; then |
|
|