Is there a difference between a daemon and a service?

13,464

Solution 1

Daemons and Services are not the same.

A "Service" could refer to either a Daemon or a Service.

A daemon is a subset of services that always run in memory waiting to service a request.

A non-daemon service generally is handled by xinetd. xinetd listens for the request, then starts the required service to handle the request. After the request has been serviced the service is then stopped again.

Typical non-daemon services: rsync vsftpd

Typical daemonized services: MySQL Apache

Solution 2

daemons and services are one in the same.

However, neither have to be bound to a port. HALd is a daemon, that monitors plugged in hardware and mounts it properly. crond is a daemon that keeps the trains on time.

Solution 3

Yes - daemons run on Unix-like boxes, and services run on Windows.

Once upon a decade ago, daemons kept going indefinitely and services didn't.

Once upon a couple of decades ago, daemons didn't keep going indefinitely either.

So, really, I meant No - there isn't a significant difference between services and daemons.

Note that 'cron' is a daemon; it is not bound to the network at all.

Share:
13,464

Related videos on Youtube

Blankman
Author by

Blankman

Updated on September 17, 2022

Comments

  • Blankman
    Blankman over 1 year

    Is there a difference between a daemon and a service?

    Or are they both basically an application that is resident in memory, and is bound to a specific port and listens/responds to requests?

  • Blankman
    Blankman about 14 years
    so then they are usually bound to a port, or OS level events?
  • user1364702
    user1364702 about 14 years
    conceptually they're the same. System programs that perform some background task not attached to a particular logged-in user...
  • user1364702
    user1364702 about 14 years
    xinetd was created to serve other services to conserve resources, but doesn't make them non-daemons. your example of non-daemons includes a deaemon...vsftpd ends in d because it's convention (but not required) to name unix deamons with a d at the end to stand for Daemon....the vsftp-daemon :-)
  • Pacerier
    Pacerier over 9 years
  • guettli
    guettli almost 5 years
    Do you still use xinitd today? I guess xinitd makes more trouble than it does help (today).