Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-03-2008, 03:45 AM   #1
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?

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

Original Poster
Rep: Reputation: 0

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


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:" saranga2000 Linux - Enterprise 4 04-26-2013 06:50 PM
initlog is deprecated powah Linux - Software 0 11-12-2007 01:30 PM
initlog is deprecated powah Linux - General 0 10-31-2007 03:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
What happend to initlog? wittrig Linux - Distributions 0 07-12-2002 12:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:51 AM.

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