Trying to move some logic to a separate shell script to prevent httpd process from being killed