From c9d787656f67c24740801d0931df8620fd8b0232 Mon Sep 17 00:00:00 2001
From: Siarhei Siniak <siarheisiniak@gmail.com>
Date: Sun, 23 Oct 2022 16:47:24 +0300
Subject: [PATCH] [~] Refactor

---
 d1/f3.sh      | 5 +++++
 d1/wsgi/f2.sh | 1 +
 2 files changed, 6 insertions(+)
 create mode 100644 d1/f3.sh
 create mode 100644 d1/wsgi/f2.sh

diff --git a/d1/f3.sh b/d1/f3.sh
new file mode 100644
index 0000000..e8a75d5
--- /dev/null
+++ b/d1/f3.sh
@@ -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
diff --git a/d1/wsgi/f2.sh b/d1/wsgi/f2.sh
new file mode 100644
index 0000000..088d32b
--- /dev/null
+++ b/d1/wsgi/f2.sh
@@ -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';