Detaching a gserver

S

Sven Schwyn

Hi there

I'm working on a policy server for Postfix and it works if used straight
from the commandline: The process forks, mama sleeps and waits for
SIGINT to stop the daemon.

Unfortunately, if I try to manage the service by an init-script with
start-stop-daemon it silently dies. My guess is that something's fishy
with the way I use Process.detach or maybe I should take more care of
STDIN, -OUT and -ERR.

Anybody knows of a project that uses the gserver class to build a daemon
so I could peek how they do it, probably even with a start-stop-daemon
example?

Thanks! -sven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top