LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 01-20-2006, 10:15 AM   #1
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
invoke-rc.d daemon start does not do anything


Whenever I do a: invoke-rc.d <insert init.d script here> start, nothing happens, but if I do a /etc/init.d/<insert init.d script here> start it works (the daemon is started)

However invoke-rc.d <insert init.d script here> stop works ...

I am using Debian Woody(the same problem occured on Debian Sarge)
Any help would be appreciated ...
 
Old 01-20-2006, 02:21 PM   #2
SuSE 1983.
LQ Newbie
 
Registered: May 2005
Distribution: DEB+IAN 3.1r1
Posts: 29

Rep: Reputation: 15
when u do invoke-rc.d <insert init.d script here> start, what does it tell you?!
 
Old 01-23-2006, 04:43 PM   #3
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
just nothing, it just returns me to the bash prompt
 
Old 01-25-2006, 01:03 PM   #4
SuSE 1983.
LQ Newbie
 
Registered: May 2005
Distribution: DEB+IAN 3.1r1
Posts: 29

Rep: Reputation: 15
Quote:
Originally Posted by Menestrel
just nothing, it just returns me to the bash prompt
And you are sure that it does nothing?
Im not expert but I would say that it works - because it just returns you to bash prompt!
 
Old 01-25-2006, 01:24 PM   #5
Jelle
Member
 
Registered: Feb 2004
Location: Utrecht, The Netherlands
Distribution: Debian
Posts: 79

Rep: Reputation: 15
It is just a shellscript, you can read (and debug) it yourself. Are there symlinks in the rc directories pointing to it. If not It might not want to start. Failing silently still puzzles me a bit though, what does the return value contain?
 
Old 01-25-2006, 06:30 PM   #6
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
Now, it does not work, it should say something like start dameon instead of returning me to the prompt. Here is an example, by taking a random daemon:

# invoke-rc.d apache2 stop
Stopping web server: Apache2.
# invoke-rc.d apache2 start
#
# /etc/init.d/apache2 start
Starting web server: Apache2.
#

So, maybe there is something wrong with invoke-rc.d, but I don't know who to debug it, nor do I know how to find out the return variable..., please guide me: I tried running a command like: y = `invoke-rc.d apache2 start` then echo $y and $y does not contain any value, but that probabbly isn't the way to find out the return value
 
Old 01-26-2006, 11:25 AM   #7
Jelle
Member
 
Registered: Feb 2004
Location: Utrecht, The Netherlands
Distribution: Debian
Posts: 79

Rep: Reputation: 15
Oh, Y see. You get the return value by inspecting the special shell variable '$?' directly after the command. I skimmed the file yesterday and it might be the case that there the script you are trying to start is not configured to start in the runlevel you are in (probably 3).

By the way: personally I don't see much point in giving an executable long name with dashes and dots, so usually I start the daemons from /etc/init.d directly. I am not being itched enough by it though, otherwise a smal shellscritp called 'service' would have found it's way on my system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Xscreensaver daemon 4.21 - will not start spaceballs Slackware 6 04-08-2005 09:56 AM
nmbd daemon won't start! Pedal2Metal Linux - Newbie 5 10-23-2004 06:59 AM
start lisa daemon jsmarshall85 Slackware 9 04-19-2004 01:25 PM
Daemon start order josephswagner Linux - Software 1 03-13-2003 05:49 PM
start server as a daemon champ Programming 5 01-27-2003 06:40 PM


All times are GMT -5. The time now is 03:50 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration