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.
I have a script that I want daemonize,
daemonize_me.shwhich calls some other python script. For example:daemonize /path/to/daemonize_me.shOutput
It looks like running script with daemonize skipping python instructions. Python is present in $PATH as well.