bentglasstube/App-MPDJ — pull request #6 by john- (2014-03-06 22:40:13+00:00)
Title: Configuration File Support

The approach used for adding config file support (use of AppConfig) also changed how command line options are defined internally (user interface remains the same). I looked at different options for reading from config files but with its single approach for both config and command line option definition AppConfig one out. I could have missed another option that would work better so feel free to point something out that you think might.

- New command line option to specify config file (overrides default of /etc/mpdj.conf).
- mpdj is now dependent on AppConfig.
- Config file format is ini style as AppConfig supports.

Here is sample config:

nodaemon

# paths to stuff
music-path=/
calls-path=incoming/calls

# behavior
before=2
after=3
calls-freq=4800

# logging
syslog=debug
conlog=debug