~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Tarmac
  • Author(s): j.c.sackett
  • Date: 2013-02-25 17:45:38 UTC
  • mfrom: (153.2.14 workify-jobs-3)
  • Revision ID: tarmac-20130225174538-smu5sly6n5zl0v6n
[r=jcsackett][bug=][author=jcsackett] Daemonizes worker via supervisor

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
run: $(INI) charmworld/static/css/theme.css
121
121
        $(PSERVE) --reload --monitor-restart $(INI)
122
122
 
 
123
start_supervisor:
 
124
        bin/supervisord -c charmworld/jobs/supervisord.conf
 
125
 
 
126
stop_supervisor: 
 
127
        if test -f ./supervisord.pid; \
 
128
                then  cat ./supervisord.pid | xargs kill -HUP; \
 
129
                else echo "No pidfile for supervisor; is the process running?"; \
 
130
        fi
 
131
 
 
132
start_worker: 
 
133
        bin/supervisorctl -c charmworld/jobs/supervisord.conf start ingest
 
134
 
 
135
stop_worker:
 
136
        bin/supervisorctl -c charmworld/jobs/supervisord.conf stop ingest
 
137
 
 
138
worker_status:
 
139
        bin/supervisorctl -c charmworld/jobs/supervisord.conf status ingest
 
140
 
123
141
clean:
124
142
        find . -type f -name '*.py[co]' -print0 | xargs -r0 $(RM)
125
143
        find . -type f -name '*~' -print0 | xargs -r0 $(RM)
126
144
 
127
145
clear_ini:
128
 
        - rm charmworld.ini
 
146
        - rm -f charmworld.ini
129
147
 
130
148
distclean: clean clean_venv
131
149
        $(RM) tags TAGS .installed.cfg
151
169
  test
152
170
  testid
153
171
  venv
 
172
  start_supervisord
 
173
  stop_supervisord
 
174
  start_worker
 
175
  stop_worker
 
176
  worker_status
154
177
endef
155
178
 
156
179
define phony