X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fcore.py;h=ceaa09244ce480338309ca3a0bdfd70368ef4754;hb=cf5fee72c57cf6b6f09b9caa78ab9e547f1d7542;hp=e3bde2c6abfec4b43d2034ff8d46f5dd2a75691d;hpb=ab9952e0258426133f6bb0fe6395ec7464dfdd33;p=mpd-sima.git diff --git a/sima/core.py b/sima/core.py index e3bde2c..ceaa092 100644 --- a/sima/core.py +++ b/sima/core.py @@ -15,12 +15,15 @@ from logging import getLogger from .client import PlayerClient from .client import PlayerError, PlayerUnHandledError from .lib.simadb import SimaDB +from .lib.daemon import Daemon -class Sima(object): +class Sima(Daemon): """Main class, plugin and player management """ def __init__(self, conf): + ## Set daemon + Daemon.__init__(self, conf.get('daemon', 'pidfile')) self.enabled = True self.config = conf self.sdb = SimaDB(db_path=conf.get('sima', 'db_file'))