with python-deamon, it's possible to print pid of this deamon ? i want like this :
import daemon
context = daemon.DaemonContext()
with context():
do_main_program()
print("pid of deamon : " + str(context.pid))
thanks for advance
with python-deamon, it's possible to print pid of this deamon ? i want like this :
import daemon
context = daemon.DaemonContext()
with context():
do_main_program()
print("pid of deamon : " + str(context.pid))
thanks for advance