Find the answer to your Linux question:
Results 1 to 9 of 9
Can anybody help me to clarify what daemons do in linux...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Location
    allahabad, india
    Posts
    1

    Question Daemons in llinux

    Can anybody help me to clarify what daemons do in linux

  2. #2
    Just Joined! teenytinylinuxgrl's Avatar
    Join Date
    Jul 2009
    Location
    florida
    Posts
    78
    A Daemon is the captain of a Ferengi ship isn't it?

    LOL, sorry... I love puns. Seriously now:

    A daemon is an application that runs in the background like an automatic ClamAv updater or scanner, a bluetooth enabler, network manager, etc.

    Amy

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Moving to a more appropriate forum.

    Daemons also frequently are run by the root user at system startup, and their parent is the init process (the very first process run on a Linux system). This allows them to run silently in the background. You cannot generally communicate directly with one, but it is sometimes possible.

    Other examples of daemons are sshd (allows you to receive SSH connections), crond (enables the crontab), and cupsd (allows you to print).
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    Just Joined! Shutdown's Avatar
    Join Date
    Aug 2009
    Location
    New York
    Posts
    70
    Quote Originally Posted by Cabhan View Post
    You cannot generally communicate directly with one, but it is sometimes possible.
    I have a question about this comment. Can you go into a little further detail in what you mean by communicate directly? I just want to get the terms right.

    For example: sshd

    I can stop/start this deamon via:

    service sshd stop
    service sshd start


    Is that what you mean by communicating directly?

    Or opening up a terminal and SSHing into a box, would you say by doing so, you are communicating directly with SSHD?

    Thanks!

  5. #5
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    Quote Originally Posted by Shutdown View Post
    I can stop/start this deamon via:

    service sshd stop
    service sshd start


    Is that what you mean by communicating directly?
    You're not communicating with sshd directly here but communicating through the service application

    When you ssh into a computer you are using the service rather than communicating with it. It's a very subtle difference
    Linux User #453176

  6. #6
    Just Joined! Shutdown's Avatar
    Join Date
    Aug 2009
    Location
    New York
    Posts
    70
    Quote Originally Posted by Kieren View Post
    You're not communicating with sshd directly here but communicating through the service application

    When you ssh into a computer you are using the service rather than communicating with it. It's a very subtle difference
    Subtle indeed!

    Ok what about if I did this instead of using the "service" application.



    /etc/init.d/sshd stop
    /etc/init.d/sshd start



    Is that now considered communication with it directly?

  7. #7
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    No, that's just starting and killing, which is an OS task. Communicating directly would be something along the lines of changing the daemon's configuration, through the daemon itself (not an application interface), while it was running.

    This typically doesn't happen... to the point that I can't come up with an example where it does. (Yes, I know Cups and Privoxy can be reconfigured via the built-in web interfaces, which the closest I can come to an example, but those are still via an application interface). I'm wondering if maybe Samba is a genuine example?

  8. #8
    Just Joined! Shutdown's Avatar
    Join Date
    Aug 2009
    Location
    New York
    Posts
    70
    Quote Originally Posted by D-cat View Post
    No, that's just starting and killing, which is an OS task. Communicating directly would be something along the lines of changing the daemon's configuration, through the daemon itself (not an application interface), while it was running.

    This typically doesn't happen... to the point that I can't come up with an example where it does. (Yes, I know Cups and Privoxy can be reconfigured via the built-in web interfaces, which the closest I can come to an example, but those are still via an application interface). I'm wondering if maybe Samba is a genuine example?

    Ok, well I think I get the gist of it, the comment about communicating with the daemon directly kinda struck me by surprised....made me think a little bit, probably too much!!!

  9. #9
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Hehe, what I meant is that the user does not give direct input to the program. One can indeed change the way it operates via configuration files or even theoretically a dbus application of some sort, but daemons are generally the "start and forget" sort of application.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

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