Skip to content

Commit

Permalink
Adiciona os mains
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelweingartner committed May 23, 2024
1 parent 4509c12 commit 3bb95db
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gnocchi/cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,7 @@ def api():

LOG.debug("Starting gnocchi api server with [%s] and arguments [%s]", uwsgi, args)
return os.execl(uwsgi, uwsgi, *args)


if __name__ == '__main__':
api()
4 changes: 4 additions & 0 deletions gnocchi/cli/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ def change_sack_size():
s.remove_sacks()
LOG.info("Creating new %d sacks", conf.sacks_number)
s.upgrade(conf.sacks_number)


if __name__ == '__main__':
upgrade()
4 changes: 4 additions & 0 deletions gnocchi/cli/metricd.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,7 @@ def metricd():
metricd_tester(conf)
else:
MetricdServiceManager(conf).run()


if __name__ == '__main__':
metricd()
4 changes: 4 additions & 0 deletions gnocchi/cli/statsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@

def statsd():
statsd_service.start()


if __name__ == '__main__':
statsd()

0 comments on commit 3bb95db

Please sign in to comment.