[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
how to make a daemon
- From: Steve Cohen <stevecoh mcs com>
- To: "redhat-list redhat com" <redhat-list redhat com>
- Subject: how to make a daemon
- Date: Sat, 01 May 1999 07:26:27 -0500
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?
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]