Find the answer to your Linux question:
Results 1 to 3 of 3
I know what a daemon is but I can't find out... What are the advantages of running as a daemon? Can someone explain the philosophy behind the decision to convert ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4

    Why run a process as a daemon?


    I know what a daemon is but I can't find out...

    What are the advantages of running as a daemon? Can someone explain the philosophy behind the decision to convert a process to a daemon?

    Thanks!

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    Helpful article but I'm still not sure what I'm losing if I just leave my program as a process instead of making it run as a daemon. Is it a resource issue? Does a daemon take fewer system resources since it's not connected to a tty?

    My application is in an embedded box, taking data from A/D converters and performing DSP algorithms. The main application sends results to another application in the box, and other boxes via TCP sockets.

    Is there something that should be making me think, "Wow, I need to be running these applications as daemons!", or "No, these should be left as processes."

    The machine has no GUI but it needs to send messages to a log file and I think I would like to be able to send signals to each process.

    Right now, I start these applications from a terminal. Eventually, they will be started from a script or maybe a master application.

    Thanks!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •