Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Fork daemon from Perl script and save it's PID. How to do it right?

by jonadab (Parson)
on Nov 26, 2008 at 13:13 UTC ( #726099=note: print w/replies, xml ) Need Help??

in reply to Fork daemon from Perl script and save it's PID. How to do it right?

It sounds to me like you're trying to do things with this program that it was fundamentally not designed to do. You want to control its processes manually from the outside, but it was clearly designed to handle them automatically internally. You want to separately manage multiple instances of it, but if it's an even vaguely typical Unix daemon (other than getty) it's probably either designed to only ever have one instance, or else to fork (or even prefork) as many processes as it needs automatically.

Perl and daemons are widely used, I don't believe that no one worked on this problem.

I think everything is working exactly as it was designed to work, but you're trying to change the design for how the program (the daemon) is supposed to work, and you want to do that without changing the program itself. Good luck with that.

We're working on a six-year set of freely redistributable Vacation Bible School materials.
  • Comment on Re: Fork daemon from Perl script and save it's PID. How to do it right?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://726099]
[erix]: a few years ago there was suddenly the news that the Kremlin was using typewriters again. Heard nothing about it afterward
[erix]: (maybe that means it worked)
[oiskuu]: Yeah, it might work as long as there are no root exploits. ;-)
[Corion]: Also, it's much harder to leak paper sheets than it is to leak documents that are available electronically
[oiskuu]: tye, do you make use of remote logging?
[oiskuu]: erix, this gives a new definition to e-paper: something that records the pressure imprints and is bluetooh capable, looks like ordinary paper.
[oiskuu]: So to be really, really sure, you must microwave the paper before you type on it.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-06-23 20:26 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (555 votes). Check out past polls.