LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-08-2006, 06:19 AM   #1
dezireduser
Member
 
Registered: Nov 2005
Posts: 38

Rep: Reputation: 15
HELP!! Service WILL NOT start at bootup! =(


I need to run a couple of daemons at startup as root, and I've inserted the commands into /etc/init.d/boot.local but they will not start up. Any ideas WHY this is happening?!
I've searched but have not found any answers to this problem.

Specifically, I want to run the following two commands:

/usr/sbin/lircd -d /dev/lirc
/usr/sbin/lircmd

Any help would be very much appreciated!

Cheers!

D
 
Old 01-08-2006, 06:24 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Check /var/log/boot.msg, maybe you'll find the problem mentioned there.

Did you try to start these commands manually? What happens?

Have you checked YaST runlevel editor? Maybe lircd is already started from there (or simply needs to be activated.
 
Old 01-08-2006, 07:08 AM   #3
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
I've got the same problem ! I worte a simple startup script to mount extra partitions upon bootup, stored in in /etc/init.d and created a shortcut to it in all run levels. It never gets executed and system logs say absolutely nothing about it. Even simple commands echo "something." doesn't work from the script and are not present in logs.
FUnny though, I copied the script tpconfig a config utility for Synaptics touchpad and created shortcut 'touchpad' under each rc#.d directory. Now, this works !!
I'm gonna dig deep into this to try and find out why my startup script is being skipped ?!
 
Old 01-08-2006, 07:58 AM   #4
dezireduser
Member
 
Registered: Nov 2005
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by abisko00
Check /var/log/boot.msg, maybe you'll find the problem mentioned there.

Did you try to start these commands manually? What happens?

Have you checked YaST runlevel editor? Maybe lircd is already started from there (or simply needs to be activated.
boot.msg shows that it loads boot.local and responds with a [DONE]. When I check the services, it's not started, and when i do a ps aux, I don't see it running. Entering the commands manually works just fine. For the lircmd, i have to restart x, so you can see it's a pain in the arse to start up the lirc daemon, then start up the lirc mouse daemon, then restart x...

I just checked the runlevel editor, and lircd/lircmd doesn't start until I manually start it.

Quote:
Originally Posted by kevkim55
I'm gonna dig deep into this to try and find out why my startup script is being skipped ?!
In my case, the script is not being skipped - the log shows that boot.local is being executed. The problem is that the daemons just don't get loaded, so I have no idea what the heck is going on between the running of boot.local and my login screen.

One more thing - Since I just want lircd to run under runlevel 3 and 5, and lircmd to run under runlevel 5, would it just be better to put a new script file with the lircd command in /etc/init.d/rc3.d and /etc/init.d/rc5.d, and a script with the lircmd command in /etc/init.d/rc5.d and somehow point to it from my sysconfig file?

Thanks for the help.

D

Last edited by dezireduser; 11-16-2006 at 08:30 AM.
 
Old 01-08-2006, 08:15 AM   #5
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
What exactly have you written in /etc/init.d/boot.local?
 
Old 01-08-2006, 08:24 AM   #6
dezireduser
Member
 
Registered: Nov 2005
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Keruskerfuerst
What exactly have you written in /etc/init.d/boot.local?
If you're asking me, then right now, I've just added these two commands but they won't load up:

/usr/sbin/lircd -d /dev/lirc
/usr/sbin/lircmd
 
Old 01-08-2006, 08:59 AM   #7
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I think you should try this:

./usr/sbin/lircd -d /dev/lirc
./usr/sbin/lircmd
 
Old 01-08-2006, 05:18 PM   #8
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
Use yast - system - system services. Give it a chance to check all the available services. Some are identified fast but others stay as ???? until the scan is complete. If a service is available it will be on that list. Select the service and then the enable button. There may be some other pop ups to respond to before the job is done. I had trouble enabling lisa and gave up but have used this method for other services.
 
Old 01-08-2006, 09:23 PM   #9
dezireduser
Member
 
Registered: Nov 2005
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fragos
Use yast - system - system services. Give it a chance to check all the available services. Some are identified fast but others stay as ???? until the scan is complete. If a service is available it will be on that list. Select the service and then the enable button. There may be some other pop ups to respond to before the job is done. I had trouble enabling lisa and gave up but have used this method for other services.

Yes, that is what I have to do now (or run the lirc and lircmd commands as root), but I need to have it automatically start up on boot, and that's where the problem is... I'm gonna try Keruskerfuerst's suggestion in a bit, and see if that works (dunno why there should be a . before the commands, but other scripts have a ". /etc/init.d/blahh", so let's hope it works.)

Thanks for the help guys!

Last edited by dezireduser; 01-08-2006 at 09:24 PM.
 
Old 01-08-2006, 10:08 PM   #10
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
I may be confused, happened before, but when I look at setting system services in yast, it looks like the changes are permanent. In expert mode, not moi, you even get to select if boot and which run levels. Most but not all services start in run levels 3 and 5. Some services like CUPS are also enabled in other parts of yast but all services are controlled here.
 
Old 01-09-2006, 12:38 AM   #11
dezireduser
Member
 
Registered: Nov 2005
Posts: 38

Original Poster
Rep: Reputation: 15
UPDATE: Ok, it all works now. I wrote a script for the lirc mouse daemon with a requirement that the lirc daemon must be running, and stuck it in the init.d directory.

Last edited by dezireduser; 11-16-2006 at 08:31 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
How do I get Novell Client to start on bootup mcleator Linux - Newbie 0 03-26-2004 06:20 AM
ethernet adapter won't start at bootup. darkpark Linux - Hardware 1 01-06-2004 11:01 AM
Problem starting java service during bootup TomCruise2002 Linux - Newbie 0 01-29-2003 09:44 PM
start programs while bootup venkatesh Linux - Newbie 1 01-19-2002 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration