Writing a python daemon

Hi All,

I have a python script that I'm trying to run as a daemon, however I'm struggling with trying to get a daemon support for python. I've managed to install py_daemon but when I try to run it I get:

<pre> File &quot;/usr/lib/python3.6/site-packages/py_daemon/py_daemon.py&quot;, line 40 home_dir=&apos;.&apos;, umask=022, verbose=1, use_gevent=False): ^ </pre>

Does anybody know how I can get daemon support on openwrt?