[moblab] Turn off verbose debugging for remote-scheduler.
Might fill the disk if left on.
TEST=None
BUG=None
Change-Id: Ifec9f1803c6bdf8a3d87ae3fcc1d1c90093b6056
(cherry picked from commit 90e1cc65ffe75d2a3c5bac585e2457f41327eb42)
Reviewed-on: https://chromium-review.googlesource.com/1640821
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
diff --git a/src/upstart_init/moblab-remote-schedule-init.conf b/src/upstart_init/moblab-remote-schedule-init.conf
new file mode 100644
index 0000000..fcc179c
--- /dev/null
+++ b/src/upstart_init/moblab-remote-schedule-init.conf
@@ -0,0 +1,23 @@
+# 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