[mythtv-users] mythbackend cannnot autostart

Chris Trown ctrown at safe-mail.net
Thu Nov 10 10:43:54 EST 2005


赵亚伟 wrote:
> Hi,everyone
> I have installed my mythtv well ,and it runs well.
> But mythbackend cannot autostart.
> Everytime I have to command, /sbin/service mythbackend start
> I want it to start by itself when computer starting
> When my computer is starting ,I get this error:  /usr/local/bin/mythbackend:error
> while loading shared libraries:/usr/local/lib/libmythavcodec-0.18.1.so.0:cannot
> restore segment prot after reloc:Permission denied.
> What is wrong? And  how to solve.   Sorry,I am a newer for linux.

      This is caused by SELinux.  You have two options.  The first is to 
use a program called "chcon".  But this will probably require more 
knowledge than you have to get it right.  The second, is to disable 
SELinux altogether.  If using Fedora, see:

http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id2825880

> Yes ,I write some script in /etc/rc.d/rc.local such as /sbin/service mythbackend start
> But no useful.
> What should I do??
> 

      While putting /sbin/service mythbackend start in /etc/rc.local 
will work, it's still incorrect to do so.  Use a program call chkconfig 
instead.  Remove the entry from /etc/rc.local.  Then do the following:

chkconfig --add mythbackend
chkconfig --level 35 mythconfig on

      That will start and gracefully stop the backend when shutting down.

Chris...

-- 
"Those who would give up essential liberty to purchase a little
temporary safety deserve neither liberty nor safety" -- Benjamin
Franklin


More information about the mythtv-users mailing list