[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how to make a daemon



/etc/inetd.conf

a server is a daemon... if you set the program to operate as a server,
then it's a daemon. If it's not acting as a server (handling incoming
connections and whatnot) then you just have a service.. which is what your
program sounds like. Regardless.. check out that config file.

On Sat, 1 May 1999, Steve Cohen wrote:

> I have written a little program that listens to /dev/ttyS0 and every
> time it sees
> a byte, it sends that byte out /dev/ttyS1 and also through a
> TCP/IP socket.
> This program runs on a linux box that is basically used for nothing
> else.
> 
> I would like to have this functionality constantly running on the box.
> To do
> so, do I need to make my program a daemon, and if so how?  Basically
> this program needs to run with root privileges.  I have to log in as su
> to get it to work.  I want it instead to happen automatically, so that
> if the machine goes down, it can be rebooted and do what it's supposed
> to with no further interaction.
> 
> Any suggestions?
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> 		http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request redhat com with 
>                        "unsubscribe" as the Subject.
> 
> 
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]