blob: fcc179c200603cec34f5978603b15d693a5758b6 [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Start the remote-scheduler service on moblab."
author "haddowk@chromium.org"
start on ( stopped moblab-homedir-init and
started moblab-scheduler-init
)
respawn
normal exit 0
script
mkdir -p /var/log/bootup/
exec >>/var/log/bootup/${UPSTART_JOB}.log 2>&1
set -x
set -e
touch /var/log/moblab_remote_schedule.log
chown moblab /var/log/moblab_remote_schedule.log
sudo -u moblab /etc/moblab/remote-scheduler/moblab_remote_scheduler.py
end script