On 09/10/14 17:44, James Harper wrote:
> A bit of googling and there were plenty of examples of how to do it
> in systemd, and it seems so much nicer. Turn on box and mythtv
> starts, without having to fake a login or anything.
I have a nice homebrew systemd mythtv setup too. For years I had a mess
of hacked GDM settings, GNOME startup scripts, and cruft. I've now
replaced that with a minimal systemd service and bootstrap script:
# /etc/systemd/system/xbmc.service
[Unit]
Description=Starts XBMC session
Wants=mythtv-backend.service
[Service]
Type=simple
User=tv
ExecStart=/usr/bin/xinit /usr/local/bin/xbmc-session
Restart=always
TimeoutSec=10
Nice=-3
[Install]
WantedBy=graphical.target
# /usr/local/bin/xbmc-session
#!/bin/sh
x11vnc -shared -forever &
openbox & # used for Steam which I launch within XBMC
exec xbmc
Starts reliably every time, and if XBMC crashes (as it unfortunately
does often), the family just has to hit Ctrl+Alt+Bksp and it all respawns.
No GNOME or X display manager dependencies whatsoever!
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main