-3

It seems that a server is not necessarily running as a daemon, e.g. X server. If I am not correct, please let me know.

Is a daemon necessarily a server? Is there a daemon which is not a server? I guess there are quite a few, and I am not sure if the init processes under sysvinit and systemd are such examples.

Thanks.

Tim
  • 101,790

2 Answers2

2

Anything that is performing a task without being requested to do so by a client. I.e. a daemon that is not serving clients.

I've recently played around with SSHGuard, a daemon that parses connection logs and that blocks abusive hosts. This is not a server.

The DHCP client daemon that many Unices runs variations of is not a server.

NTP is often implemented as a daemon that can function without being a server (only as a leaf node client).

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
Kusalananda
  • 333,661
0

I am moving Mark's comment here

https://www.tuhs.org//cgi-bin/utree.pl?file=V7/usr/src/cmd/update.c is a daemon that is not a server.

Tim
  • 101,790