[~] Refactor

This commit is contained in:
Siarhei Siniak 2022-10-23 16:47:24 +03:00
parent 90beb070e4
commit c9d787656f
2 changed files with 6 additions and 0 deletions

5
d1/f3.sh Normal file

@ -0,0 +1,5 @@
cat d1/f2.py | $@ sh -c 'cat > $HOME/p1/p1/passenger_wsgi.py'
cat tmp/wsgi_config.json | $@ sh -c 'cat > $HOME/p1/p1/wsgi_config.json'
cat d1/wsgi/.htaccess | $@ sh -c 'cat > $HOME/public_html/.htaccess'
cat d1/wsgi/f2.sh | $@ sh -c 'cat > $HOME/p1/p1/f2.sh'
$@ sh p1/p1/f2.sh

1
d1/wsgi/f2.sh Normal file

@ -0,0 +1 @@
echo START; pgrep -f -a 'python.*wsgi-loader'; pgrep -f -a 'python.*wsgi-loader' | awk '{print $1}' | xargs kill -s SIGINT; echo AFTER; pgrep -f -a 'python.*wsgi-loader';