Skip to content

Commit

Permalink
Merge pull request #47 from GilHoggarth/master
Browse files Browse the repository at this point in the history
Correction to nohup command
  • Loading branch information
GilHoggarth authored Nov 18, 2022
2 parents f962c18 + 0c2e409 commit e83a8eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stat-pusher/ldl-pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def script(eset):
# create web service
monitorServer = HTTPServer((eset['hostname'], int(eset['port'])), webServer)
logger.info(f"Started LDL monitoring web server: {eset['hostname']}:{eset['port']}")
logger.debug(f"Pushing to gateway every [{eset['schedule']}] minutes")
logger.info(f"Pushing to {eset['pushgtw']} gateway every {eset['schedule']} minutes")
try:
monitorServer.serve_forever()
except Exception as e:
Expand All @@ -178,7 +178,7 @@ def script(eset):
sys.exit(1)

# get swarm environment
senvMatch = re.match('^(dev|beta|monitor)', socket.gethostname())
senvMatch = re.match('^(dev|beta|prod|monitor)', socket.gethostname())
if senvMatch:
environ = senvMatch.group(1)
else:
Expand Down
2 changes: 1 addition & 1 deletion stat-pusher/run_ldl_pusher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd $PYTHONPATH
pip install -r ldl-requirements.txt

# run stat-pusher script
if [[ ${HOSTNAME} =~ ^prod ]]; then
if [[ ${HOSTNAME} =~ ^(monitor|prod) ]]; then
nohup python ldl-pusher.py > /dev/null & # disable generation of large logs over time
else
nohup python ldl-pusher.py &
Expand Down

0 comments on commit e83a8eb

Please sign in to comment.