Hi,
I use XBMCBuntu Eden + Tvheadend PPA (currently 3.2.18~g40a8920~oneiric).
Over the months, I have been using a lot of versions of tvheadend. The automatic startup at boot never worked very well (duplicate instances - see "this thread" so I wrote a dirty but efficient little script to kill everything at startup and to start it again.
I know that the normal way of using tvheadend would be to type commands such as "start tvheadend", "stop tvheadend", "restart tvheadend".
* But when I type "start tvheadend", I get a message looking like insufficient rights:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.36" (uid=1000 pid=2490 comm="start tvheadend ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
* When I type "sudo start tvheadend", I get a nice message, however nothing starts (no tvheadend web interface nor process nor syslog message)
spontex@pchc:~$ sudo restart tvheadend
tvheadend start/running
spontex@pchc:~$ ps aux | grep tvh
spontex 2509 0.0 0.0 4212 772 pts/1 S+ 21:51 0:00 grep --color=auto tvh
* When I type "tvheadend -f -u spontex -g video", I get this error message:
Nov 14 21:53:28 [ALERT]:START: setgid() failed, do you have permission?
* When I just type "tvheadend", everything works fine and I am happy :-)
Can anyone please help me to understand why these upstart scripts do not work?
Thanks!