cc-1799 : Filesystem
notifier doesn't need to be made a daemon.
This commit is contained in:
parent
69874fc992
commit
ee92c5cfb4
2 changed files with 2 additions and 7 deletions
|
@ -18,10 +18,6 @@ def handleSigTERM(signum, frame):
|
|||
p.terminate()
|
||||
logger.info("Killed process. %d", p.pid)
|
||||
|
||||
notifier_daemon_pid = open('/var/run/airtime-notifier.pid', 'r').read()
|
||||
os.kill(int(notifier_daemon_pid), 9)
|
||||
logger.info("Killed process. %d", int(notifier_daemon_pid))
|
||||
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
@ -65,8 +61,8 @@ try:
|
|||
logger.info("Added watch to %s", storage_directory)
|
||||
logger.info("wdd result %s", wdd[storage_directory])
|
||||
|
||||
notifier.loop(daemonize=True, callback=pe.notifier_loop_callback, pid_file='/var/run/airtime-notifier.pid', stdout='/var/log/airtime/media-monitor/media-monitor.log')
|
||||
|
||||
notifier.loop(callback=pe.notifier_loop_callback)
|
||||
|
||||
for p in processes:
|
||||
p.join()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue