Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional configuration file /etc/mediamon/mediamon.ini #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ardumont
Copy link

Hello,

I've a slightly different volumes repartition than yours.
And I'd like to avoid hard-coding the folders to watch on the python file.

The idea is to have an /etc/mediamon/mediamon.ini file instead:

    [main]
    # logging file
    logfile = /var/log/mediamon.log

    # pid file
    pidfile = /var/run/mediamon.pid

    # list of space separated paths to watch
    watched_paths = /volume1/techconf /volume1/musics /volume1/pix

    # list of space separated allowed extensions
    allowed_exts = jpg png gif bmp mp3 flac aac wma ogg ogv mp4 avi m4v

I kept your defaults as original options (in the python file) if the file does not exist.
So it keeps working as you expect it if not using this file.

Are you interested?

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant