1# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4description "Autotest Suite scheduler" 5start on (starting network-interface 6 or starting network-manager 7 or starting networking) 8 9start on runlevel [2345] 10stop on runlevel [!2345] 11 12script 13 # Uncomment for debugging 14 # exec > /tmp/suite-scheduler-start.log 2>&1 15 USER="chromeos-test" 16 AUTOTEST_DIR="/usr/local/autotest" 17 LOGGING_DIR="${AUTOTEST_DIR}/logs" 18 SCHEDULER_DIR="${AUTOTEST_DIR}/site_utils/suite_scheduler" 19 SCHEDULER_COMMAND="suite_scheduler.py" 20 SCHEDULER_ARGS="${SCHEDULER_ARGS} -d ${LOGGING_DIR} -f ${AUTOTEST_DIR}/suite_scheduler.ini" 21 22 exec sudo -u ${USER} ${SCHEDULER_DIR}/${SCHEDULER_COMMAND} ${SCHEDULER_ARGS} 23end script 24 25respawn 26