ChrisMmm wrote: > OK after a bit of playing around I found adding a max sample rate in the > player parms gets the service to restart automatically after boot. As > per Squeezelite doco "allows output to be off when squeezelite is > started" so I assume the device wasn't ready when SL went to check for > max sample rate?
A good tip, I had this problem after building arch based VM with soa-aur, and when using it with a laptop runing openbox as the DE, as I mention in #99. But there is a systemd solution, and it's not hacking the unit file. After a bit of digging, I found the procedure is detailed here: https://wiki.archlinux.org/index.php/systemd towards bottom of page. e.g. Code: -------------------- [root@soa-vm ~]# mkdir /etc/systemd/system/squeezelite.service.d/ [root@soa-vm ~]# cd /etc/systemd/system/squeezelite.service.d/ [root@soa-vm squeezelite.service.d]# touch restart.conf [root@soa-vm squeezelite.service.d]# nano restart.conf ..... [root@soa-vm squeezelite.service.d]# cat restart.conf [Service] Restart=always RestartSec=30 [root@soa-vm /]# systemctl daemon-reload [root@soa-vm /]# systemctl restart squeezelite.service -------------------- Adjust delay to suit sytem. Output after reboot. Code: -------------------- [root@soa-vm /]# journalctl -f -- Logs begin at Tue 2014-06-10 12:23:24 BST. -- Jun 10 13:14:46 soa-vm systemd[239]: Starting Basic System. Jun 10 13:14:46 soa-vm systemd[239]: Reached target Basic System. Jun 10 13:14:46 soa-vm systemd[239]: Starting Default. Jun 10 13:14:46 soa-vm systemd[239]: Reached target Default. Jun 10 13:14:46 soa-vm systemd[239]: Startup finished in 1ms. Jun 10 13:14:46 soa-vm systemd[1]: Started User Manager for UID 0. Jun 10 13:15:09 soa-vm systemd[1]: squeezelite.service holdoff time over, scheduling restart. Jun 10 13:15:09 soa-vm systemd[1]: Stopping Squeezelite Player... Jun 10 13:15:09 soa-vm systemd[1]: Starting Squeezelite Player... Jun 10 13:15:09 soa-vm systemd[1]: Started Squeezelite Player. -------------------- ------------------------------------------------------------------------ Krisbee's Profile: http://forums.slimdevices.com/member.php?userid=59080 View this thread: http://forums.slimdevices.com/showthread.php?t=101624 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
