LinHES Forums http://forums.linhes.org/ |
|
Setting applications to run at startup http://forums.linhes.org/viewtopic.php?f=5&t=13860 |
Page 1 of 1 |
Author: | ErikU [ Fri Jan 26, 2007 9:11 pm ] |
Post subject: | Setting applications to run at startup |
I finally got my imon VFD display working well with myth, but am too much of a linux newbie to get the commands to run automatically at reboot. I used the following guide: http://www.mythtv.org/wiki/index.php/LCDproc Here is what I have to do in a shell to make it work: # /usr/local/sbin/LCDd -c /home/mythtv/lcd/LCDd.conf # killall mythlcdserver # mythlcdserver I assume that I really only need to get the first line to execute, since it looks like mythlcdserver is running before LCDd Any ideas? thanks |
Author: | Greg Frost [ Fri Jan 26, 2007 9:13 pm ] |
Post subject: | |
put the commands at the bottom of /etc/init.d/bootmisc.sh and they will be run automatically when your system boots. |
Author: | ErikU [ Fri Jan 26, 2007 9:40 pm ] |
Post subject: | |
I added it to the end of the script, but it didn't work. Stange, since I can enter exactly those commands in the shell and it works fine. Thoughts? |
Author: | Greg Frost [ Fri Jan 26, 2007 9:50 pm ] |
Post subject: | |
Did you add all three commands? It may be that the mythlcdserver needs to be re-started AFTER you have run LCDd. |
Author: | ErikU [ Fri Jan 26, 2007 9:58 pm ] |
Post subject: | |
I did add all three. Is there anything in the script that needs to be at the end, or can my three lines be at the very end? |
Author: | kwbolte [ Tue Feb 27, 2007 1:17 pm ] |
Post subject: | |
Normally it can be at the end but be sure to press enter for a new line after it. But on KnoppMyth R5E50 the path for LCDd is only /usr/sbin/LCDd . I have the same problem and try it in /etc/init.d/bootmisc.sh with these lines: # mythlcdserver /usr/sbin/LCDd killall mythlcdserver mythlcdserver -d I will post it here if that works. |
Author: | kwbolte [ Wed Feb 28, 2007 4:33 am ] |
Post subject: | |
The problem is that LCDd needs a time to come up. My solution is: # mythlcdserver /usr/sbin/LCDd killall mythlcdserver sleep 5 # wait 5 seconds, you can play with this value. mythlcdserver -d Good luck, Kai |
Author: | khrusher [ Wed Feb 28, 2007 1:26 pm ] |
Post subject: | |
instead of starting, killing and restarting mythlcdserver, maybe you can either just start usr/sbin/LCDd earlier. Or not start mythlcdserver during the standard boot process...only once, in miscboot. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |