~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Tom Haddon
  • Date: 2008-01-07 22:42:59 UTC
  • mto: This revision was merged to the branch mainline in revision 5459.
  • Revision ID: tom.haddon@canonical.com-20080107224259-67jb221t3t4kniuo
Constant for shutdown and correct path locations

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
LPCONFIG=default
20
20
CONFFILE=configs/${LPCONFIG}/launchpad.conf
21
21
 
 
22
MINS_TO_SHUTDOWN=15
 
23
 
22
24
# DO NOT ALTER : this should just build by default
23
25
default: inplace
24
26
 
176
178
            utilities/killservice.py librarian buildsequencer launchpad mailman
177
179
 
178
180
shutdown: scheduleoutage stop
179
 
        rm -f ${SRC}/+maintenancetime.txt
 
181
        rm -f +maintenancetime.txt
180
182
 
181
183
scheduleoutage:
182
 
        echo Scheduling outage in 15 mins
183
 
        date --iso-8601=minutes -u -d +15mins > ${SRC}/+maintenancetime.txt
184
 
        echo Sleeping 15 mins
185
 
        sleep 900
 
184
        echo Scheduling outage in ${MINS_TO_SHUTDOWN} mins
 
185
        date --iso-8601=minutes -u -d +${MINS_TO_SHUTDOWN}mins > +maintenancetime.txt
 
186
        echo Sleeping ${MINS_TO_SHUTDOWN} mins
 
187
        sleep ${MINS_TO_SHUTDOWN}m
186
188
 
187
189
harness:
188
190
        PYTHONPATH=lib $(PYTHON) -i lib/canonical/database/harness.py