What is the --daemon option?

Posted by Pascal Dimassimo on Server Fault See other posts from Server Fault or by Pascal Dimassimo
Published on 2011-11-18T17:03:18Z Indexed on 2011/11/18 17:53 UTC
Read the original article Hit count: 175

Filed under:
|
|

I was installing Solr with Jetty using these instructions. Basically, those instructions made you download the Jetty startup script and copy it to /etc/init.d/jetty.

But it was not working. Each time I was starting Jetty, I had a "FAILED" message and nothing to understand why it was happening. I decided to open up the /etc/init.d/jetty script to understand what was happening. I saw that this script was using start-stop-daemon to launch jetty. After a couple of time of debugging, I discovered that removing the --daemon option at the end of the start-stop-daemon call was fixing my problem.

I did a couple of research and discovered that this guy had the same problem and resolved it like I did: my removing the --daemon option.

What is weird is that the switch does not seem to be specific to start-stop-daemon, because it is not documented in the man page. Also, I've seen it used for other commands.

So what is that --daemon option doing? And why removing it resolved my problem?

Note that I am working on Ubuntu 10.04.2 LTS.

© Server Fault or respective owner

Related posts about linux

Related posts about jetty