Remove BG for filecheck

This commit is contained in:
Mike Reeves
2022-11-28 09:09:25 -05:00
parent 723e145eeb
commit 0e2753393b
2 changed files with 5 additions and 5 deletions

View File

@@ -83,3 +83,5 @@ if __name__ == "__main__":
except KeyboardInterrupt:
observer.stop()
observer.join()
logging.info("Exiting filecheck")

View File

@@ -162,11 +162,9 @@ filecheck_script:
- mode: 755
filecheck_run:
cmd.run:
- name: 'python3 /opt/so/conf/strelka/filecheck'
- bg: True
- runas: socore
- unless: ps -ef | grep filecheck | grep -v grep
cron.present:
- name: 'ps -ef | grep filecheck | grep -v grep || python3 /opt/so/conf/strelka/filecheck >> /opt/so/log/strelka/filecheck_stdout.log 2>&1 &'
- user: socore
filcheck_history_clean:
cron.present: