Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Ubuntu, I use -D to run a service as daemon. I wonder there is any similar command to do this in Centos.

share|improve this question
What thing are you trying to run as a service? – cjc Mar 9 '12 at 14:59

-D can only be used if the applications supports that. If the application you intend to daemonise in Ubuntu is via -D option then it should work the same way in Centos Also.

share|improve this answer
Thanks, but i found the solution by using nohup with the command and end up with & – Frankel Mar 12 '12 at 6:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.