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()
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ try:
|
|||
|
||||
os.system("/etc/init.d/airtime-media-monitor stop")
|
||||
os.system("rm -f /etc/init.d/airtime-media-monitor")
|
||||
os.system("rm -f /var/run/airtime-notifier.pid")
|
||||
os.system("update-rc.d -f airtime-media-monitor remove >/dev/null 2>&1")
|
||||
|
||||
print "Removing log directories"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue