Re: Daemon::Easy and self-killing

2009-10-15 Thread Michael Pobega
On 0, Steve Bertrand wrote: > Michael Pobega wrote: > > I'm using the Daemon::Easy module to write a basic Perl daemon, but I'm > > wondering if there is a way to stop the daemon from within the script (as > > opposed to running "./script.pl stop")? Currently I have a subroutine to do > > this, b

Re: Daemon::Easy and self-killing

2009-10-14 Thread Steve Bertrand
Michael Pobega wrote: > I'm using the Daemon::Easy module to write a basic Perl daemon, but I'm > wondering if there is a way to stop the daemon from within the script (as > opposed to running "./script.pl stop")? Currently I have a subroutine to do > this, but it doesn't seem to cleanly erase the

Daemon::Easy and self-killing

2009-10-14 Thread Michael Pobega
I'm using the Daemon::Easy module to write a basic Perl daemon, but I'm wondering if there is a way to stop the daemon from within the script (as opposed to running "./script.pl stop")? Currently I have a subroutine to do this, but it doesn't seem to cleanly erase the pid file. > &killMe { >