bmc / daemonize

Command line utility to run a program as a Unix daemon
http://software.clapper.org/daemonize/
Other
558 stars 97 forks source link

Daemonize skipping python commands #29

Open rishabhjain9191 opened 5 years ago

rishabhjain9191 commented 5 years ago

I have a script that I want daemonize, daemonize_me.sh which calls some other python script. For example:

#!/bin/bash 
echo "Before Python"
python --version
/usr/bin/python --version
python somefile.py
which python
echo "After Python"

daemonize /path/to/daemonize_me.sh Output

Before Python
/usr/bin/python
After Python

It looks like running script with daemonize skipping python instructions. Python is present in $PATH as well.

random-user-00 commented 4 years ago

You need to provide full path of the python script somefile.py.