Working well here, quite pleased with the mixes it produces. After
running it through its paces manually to see it working, I've now
created a systemd service file for it, writing the log files to the
systemlog
Systemd Service file:

Code:
--------------------
    
  [Unit]
  Description=Music-Similarity DSTM source daemon for LMS
  After=network.target logitechmediaserver.service
  
  [Service]
  Type=simple
  Restart=always
  RestartSec=1
  User=%USER%
  ExecStart=/usr/bin/python3 -u /%MUSIC-SIMILARITY PATH%/music-similarity.py -c 
/%MUSIC-SIMILARITY CONFIG.JSON PATH%/config.json -l DEBUG
  StandardOutput=syslog
  StandardError=syslog
  SyslogIdentifier=MusicSimilarity
  
  [Install]
  WantedBy=multi-user.target
  
--------------------

Store this file as music-similarity.service, easiest is in the
music-similarity folder, replace the variables for user & path to
reflect your installation, modify the logging level to suit your needs
and run

Code:
--------------------
    
  sudo systemctl enable %SERVICE_FILE_PATH%/music-similarity.service
  
--------------------

Again, replacing the path variable of course ... After this, run the
same command again, but replace "enable" by "start", to start the
service. Running the same command but with "status", you'll see if it's
running. For a detailed view at today's output:

Code:
--------------------
    
  journalctl -u music-similarity.service --since today
  
--------------------



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...
------------------------------------------------------------------------
bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to