Sponsored Content
Full Discussion: What is a daemon process?
Top Forums Programming What is a daemon process? Post 16254 by Perderabo on Wednesday 27th of February 2002 10:14:32 AM
Old 02-27-2002
You're way off the mark. Asking what a daemon does in like asking what a program does....the answer depends on the specific example.

cron, inetd, syslogd all run as daemons and they do a lot. But it is easy to write a daemon that does nothing but just monitor something. It's also easy to write a daemon that does nothing at all.
 

10 More Discussions You Might Find Interesting

1. Programming

Daemon process

Hi, I have to write a daemon process, which performs certain operations in the background. Now since it performs operations in the background, it should not display anything to the standard output. The problem is that it still displays, text on standard output. Can anyone tell me (it is... (2 Replies)
Discussion started by: s_chordia
2 Replies

2. UNIX for Advanced & Expert Users

zombie daemon process!!

My daemon process is the child of init and init has the responsibility to remove it, once it turns zombie. But I want to ask why the daemon process which is child of init turns zombie in the first place. What measures I have to take to avoid this? rish (1 Reply)
Discussion started by: rish2005
1 Replies

3. Linux

daemon process

how i will write the daemon process,if any body have sample daemon process send me. (1 Reply)
Discussion started by: suresh_rupineni
1 Replies

4. Shell Programming and Scripting

How to starting process as daemon using ssh command?

Hello, I need to run a command on remote Linux using the ssh command from my local machine. I am able to execute the command on remote machine using ssh but it's behaving strangely. The command is supposed to start a daemon process on remote linux box and the control should return back to me... (5 Replies)
Discussion started by: nitinshukla
5 Replies

5. UNIX for Dummies Questions & Answers

How to write Pro*C daemon process using multithreading?

Hello, I am new to this forum and this is my first post here... I have never worked on either Pro*C or Multithreading..Now, i have to write a Pro*C, Multithreading daemon process.. I dont know where to start.. Can anybody help me with examples? 1. need to write a Pro*C multithreading... (0 Replies)
Discussion started by: kachiraju
0 Replies

6. Programming

How to find if a process a daemon ?

I have a scenario where I need to find if a process is a daemon process or not. This check needs to be done from within the process. I know there are no direct API's to do so. I have explored these options. 1. ctermid() - this can be unsuccessful as per the man pages 2. int devtty; if ((devtty... (7 Replies)
Discussion started by: vino
7 Replies

7. Shell Programming and Scripting

Diff between Bg and daemon process

Dear Unix Gurus, Plz provide major diff between background process and daemon process. Is it control available for daemon process?. (3 Replies)
Discussion started by: kkl
3 Replies

8. UNIX for Advanced & Expert Users

Needs help in launching a console application with the help of daemon process

Hi All, I am facing problem in launching a application with the help of a daemon process. Actually the application is based on command line that reads various commands for controlling the application from the console and accordingly executes those commands. The application always interact with... (3 Replies)
Discussion started by: gopallinux
3 Replies

9. Shell Programming and Scripting

run this script as a daemon process

Hi, HI , I have a simple script that moves files from one folder to another folder, I have already done the open-ssh server settings and the script is working fine and is able to transfer the files from one folder to another but right now I myself execute this script by using my creditianls to... (3 Replies)
Discussion started by: nks342
3 Replies

10. Programming

Daemon process

I wish to make a process run in the background, but only one instance of it, and not many, so when the program is loaded, it has to check whether another instance of the same program is running and if so to exit. How do I do this ? (4 Replies)
Discussion started by: sundaresh
4 Replies
inetd(8)						      System Manager's Manual							  inetd(8)

NAME
inetd - Internet services daemon SYNOPSIS
For starting the daemon: inetd [-d] [-R rate] [-r radid] [configfile] For signaling the running daemon: inetd [-d] [-h | -q | -s | -t] FLAGS
Dumps debugging messages to syslogd(8) and to standard error. Sends the currently running master inetd daemon a SIGHUP signal, which causes it to reread its configuration files. Sends the currently running master inetd daemon a SIGQUIT signal, which kills all inetd child daemons, but none of the services that the child daemons have started. The master inetd daemon continues to run. Specifies the maximum number of times a service can be invoked in one minute. The default is 2 billion (INT_MAX). Specifies the identifier of the Resource Affinity Domain (RAD) on which to start an inetd child daemon. You can specify this option multiple times on the command line (see the "Examples" section). The default is to start a child daemon on all RADs. Sends the currently running master inetd daemon a SIGUSR2 sig- nal, which kills all inetd daemons, including the master inetd daemon, and all services that they have started. Sends the currently run- ning master inetd daemon a SIGTERM signal, which kills all inetd daemons, including the master inetd daemon, but none of the services that they have started. By default, the files are /etc/inetd.conf and /etc/inetd.conf.local. They contain configuration information that the daemon reads at startup. If you specify configfile on the command line, only that file is read at startup. DESCRIPTION
The inetd daemon should be run at boot time by inetd in the /sbin/init.d directory. At startup, it determines how many RADs are present (if on NUMA-capable hardware) and starts an inetd child daemon on each RAD. On non-NUMA hardware, only one inetd child daemon is started. Each inetd child then listens for connections on certain Internet sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. After the program is finished, it continues to lis- ten on the socket (except in some cases that are discussed later in this reference page. Essentially, inetd allows running one daemon to invoke several others, reducing load on the system. Upon execution, each inetd child reads its configuration information from the two configuration files, which, by default, are /etc/inetd.conf and /etc/inetd.conf.local; the /etc/inetd.conf file is read first. There must be an entry for each field of the configura- tion files, with entries for each field separated by a tab or a space. Comments are denoted by a # (number sign) at the beginning of a line. If an entry exists in both configuration files, the entry in the /etc/inetd.conf.local file overrides the entry in the /etc/inetd.conf file. See inetd.conf(4) for more information. The inetd daemon provides several trivial services internally by use of routines within itself. These services are echo, discard, chargen (character generator), daytime (human-readable time), and time (machine-readable time, in the form of the number of seconds since midnight January 1, 1900). All of these services are tcp or udp based, and support both IPv4 and IPv6. (Note: These services are initially turned off. To turn them on, you must remove the comment leader of the service in /etc/inetd.conf or /etc/inetd.conf.local, depending on your configuration, and send a SIGHUP signal to inetd.) For details of these services, consult the appropriate RFC. The inetd daemon rereads its configuration files when it receives a hangup signal, SIGHUP. Services may be added, deleted, or modified when the configuration files are reread. You should use the -h option to send a SIGHUP signal. You can use the inetd daemon to start RPC daemons by adding them to the inetd.conf or inetd.conf.local file. When you add an RPC service it must be followed by a slash (/) and the range of version supported. Also, the protocol field must consist of the string rpc followed by a slash (/) and protocol listed in the /etc/protocols file. Resource Affinity Domains and inetd When you add a new RAD, complete the following steps: Add the RAD. Configure the RAD. Issue the inetd -h command to force inetd to reread its configuration file. When you delete a RAD, complete the following steps: Issue the inetd -q command to kill all child daemons. Unconfigure the RAD. Remove the RAD. Issue the inetd -h command to force inetd to reread its configuration file. See the appropriate hardware documentation for the actual procedure for adding and deleting a RAD. EXAMPLES
To start an inetd daemon on RADs 1 and 2, enter: # inetd -r1 -r2 FILES
Specifies the command path. The global configuration file. The cluster member-specific configuration file. Process ID. RELATED INFORMATION
Commands: comsat(8). Daemons: fingerd(8), ftpd(8), rexecd(8), rlogind(8), rpc.rquotad(8), rpc.rstatd(8), rpc.rusersd(8), rpc.rwalld(8), rpc.sprayd(8), rshd(8), telnetd(8), tftpd(8). Files: inetd.conf(4). delim off inetd(8)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy