Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Dear monks, so sorry to disturby but i need help I am currently developing a proxy server all in perl and I have tested it and seems to be greate. But there is a problem, I want to meke it run as a daemon service I a Red hat Linux system but I dont know how. The proxy handls its own multi threading and spawns a new instance each time a new connection is made to it. I tried using xinetd superserver to start it but I keep getting this error messagees

04/7/14@19:55:56: DEBUG: 3298 {main_loop} select returned 1
04/7/14@19:55:56: DEBUG: 3298 {server_start} Starting service webcache
04/7/14@19:55:56: DEBUG: 3313 {exec_server} duping 7
04/7/14@19:55:56: DEBUG: 3298 {main_loop} active_services = 1
04/7/14@19:55:57: DEBUG: 3298 {main_loop} active_services = 1
04/7/14@19:55:57: DEBUG: 3298 {main_loop} select returned 1
04/7/14@19:55:57: DEBUG: 3298 {check_pipe} Got signal 17 (Child exited)
04/7/14@19:55:57: DEBUG: 3298 {child_exit} waitpid returned

really i would like it to be started ad a daemon program when booting the system, i.e, I get to initialize it in the /etc/rc... directories. pleasse can you provide me with a solution. thanks

In reply to Creating a perl daemon by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found