in reply to starting/stopping a daemon from Apache/mod_perl?

Have you tried, system '/path/to/daemonctl', 'stop'; or whatever other argument you may need for daemonctl?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: starting/stopping a daemon from Apache/mod_perl?
by sri (Vicar) on Jul 12, 2003 at 22:04 UTC
    It doesn't matter how to kill the daemon, system() or kill() or something else...

    The problem is to stop the daemon out of the Apache.

    If I type "apachectl stop" or "kill <APACHEPID>" I want to trigger an event in the Apache (system, kill...) that stops my daemon.
      That is a question that has nothing to do with Perl or perl, and all with Apache. You will have more luck asking this question in forum where this kind of questions are on-topic.

      Abigail

        It's not offtopic, see some posts below for a working solution, which is in fact pure perl! :)