2012-10-12, 12:24
mind the typo I corrected it
![Wink Wink](https://forum.kodi.tv/images/smilies/wink.png)
(2012-10-12, 08:24)Hack_kid Wrote: in regards to the upstart job instructions, what is this for?
sudo ln -s /lib/init/upstart-job /etc/init.d/xbmc
why do we need to make a shortcut to lib/init/upstart-job? it doesnt make sense upstart jobs are executed from the .conf files in the init folder nothing more. and those conf files tell the system what to do which in this case is run runXBMC which resides in uxr/bin/runXBMC just a little cunfused here
weirdnesses Wrote:#!/bin/sh -e
# upstart-job
#
# Symlink target for initscripts that have been converted to Upstart.
~$ sudo /etc/init.d/gdm status
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service gdm status
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status gdm
gdm start/running, process 1145
~$
sensors
# xbmc-upstart
# starts XBMC on startup using xinit and the startx command. Runs as xbmc as user
description "XBMC-barebones-upstart-script"
author "Matt Filetto"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
# tell upstart to respawn the process if abnormal exit
respawn
script
exec su -c "startx /usr/bin/xbmc --standalone :0" xbmc
end script
Quote:The startx command uses .xinitrc in the home directory of the user it is running under. In this case, I simply start xbmc, no window manager is needed. Note that the user you use to run startx might need to be a member of certain groups for this to work. I believe at least the video group is needed for X to work, but I'm not sure.
Quote:The startx command uses .xinitrc in the home directory of the user it is running under. In this case, I simply start xbmc, no window manager is needed. Note that the user you use to run startx might need to be a member of certain groups for this to work. I believe at least the video group is needed for X to work, but I'm not sure.