Re: How to start a Server prog written in C (using sockets) to start at bootup
- From: Tauno Voipio <tauno.voipio@xxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 18:54:50 GMT
rajanyadav wrote:
How to start a Server prog written in C (using sockets) to start at
bootup. I tried adding script to rc5.d? But the problem is that since
the server starts listening on a port( 5000) the OS freezes and then I
have to bootup in rescue mode to remove that script.
All the script does is runs a program calle server written in C.
In the script I have followed the start, stop status pattern followed
in other rc5.d scripts.
The scripts in the rc directories are set up for controlling
C programs which are specifically written to run as daemons.
You cannot start a simple terminal-oriented program and
assume that it behaves as a proper daemon.
For details, get e.g. the book
W Richard Stevens, Advanced Programming in the UNIX
Environment
and read the chapter on daemons (and all others referred
from it).
--
Tauno Voipio
tauno voipio (at) iki fi
.
- References:
- Prev by Date: Re: bad ISO's
- Next by Date: reboot on reset
- Previous by thread: How to start a Server prog written in C (using sockets) to start at bootup
- Next by thread: Give Xandros a try. Was: MS Windows Linux Distribution?
- Index(es):
Relevant Pages
|