LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2008, 04:45 AM   #1
c_golan
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
initlog problem


Hi all,
I have a program written in C (foo). In addition there is a startup script(foo2) which should run this program (under /etc/rc.d/init.d directory).
The script is a generic startup script and the relevant command in the script which runs the program is:
daemon foo $foo_parameters
The foo_parameters are read well from a config file under sysconfig.
When I'm using the command "foo2 start" the foo program is executed as expected but the script remains stucked on the daemon line and do not execute the lines after.
When debugging this issue I found out the exact line in daemon function where it really stucked.
The line is:
$nice initlog $INITLOG_ARGS -c "$*"

Any idea what I'm doing wrong?

Thanks
 
Old 01-07-2008, 07:34 AM   #2
c_golan
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Solution

To whom have this problem - Just add a & sign after the program's name at the daemon command line.
 
  


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
Reboot Error: "initlog: error while loading shared libraries: libpopt.so.0" saranga2000 Linux - Enterprise 4 04-26-2013 07:50 PM
initlog is deprecated powah Linux - Software 0 11-12-2007 02:30 PM
initlog is deprecated powah Linux - General 0 10-31-2007 04:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM
What happend to initlog? wittrig Linux - Distributions 0 07-12-2002 01:55 PM


All times are GMT -5. The time now is 09:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration