I set up a headless server using the following config:

loginctl enable-linger kodi      # kodi is the userid I used for all
multimedia
mkdir .config/systemd

file .config/systemd/squeezelite.service:
[Unit]
Description=Squeezelite
Wants=dbus.socket
After=dbus.socket

[Service]
ExecPre=xset s off
ExecStart=/usr/bin/squeezelite -s server.homenet 
Restart=always

[Install]
WantedBy=default.target
--------
There is a similar control file for kodi.
nodm is set to autologin to the kodi user.


systemctl --user enable squeezelite
systemctl --user start squeezelite

I used pavucontrol to initially set pulse to use the correct output
(hdmi in my case).


------------------------------------------------------------------------
adamf663's Profile: http://forums.slimdevices.com/member.php?userid=71084
View this thread: http://forums.slimdevices.com/showthread.php?t=108842

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

Reply via email to