Add better config file and logging support for the scheduler
Headline:
The LAVA scheduler daemon can now be started at init time, supports a config file, and keeps logs.
Acceptance criteria:
1. scheduler daemon should read from a config file in /etc, or optionally also from a config file under ~/.config
2. scheduler daemon should log to a file, rather than just dump output to the screen
3. scheduler daemon should start in init (upstart job)
Blueprint information
- Status:
- Complete
- Approver:
- Paul Larson
- Priority:
- Medium
- Drafter:
- Paul Larson
- Direction:
- Approved
- Assignee:
- Michael Hudson-Doyle
- Definition:
- Approved
- Series goal:
- Accepted for linaro-11.11
- Implementation:
- Implemented
- Milestone target:
- 2011.08
- Started by
- Paul Larson
- Completed by
- Paul Larson
Related branches
Related bugs
Sprints
Whiteboard
Status:
[pwlars 20110818] Acceptance criteria complete, and it can start in an upstart job but cannot be auto-started because it needs to reattempt connection to the db if the db isn't up when it tries to start. Remaining work items for that have been postponed here, and mwhudson already started another blueprint for that.
Work Items
Work items:
Add config file support: DONE
Use log path and log level in config file: DONE
Provide default config file in package: DONE
Change scheduler to attempt to reconnect to db if connection drops/fails: POSTPONED
Provide updstart job in package: POSTPONED
Dependency tree
* Blueprints in grey have been implemented.