- or download this
# This is a general-purpose daemon module.
# Extend this class and override the run method with your own.
...
1
- or download this
package My::Base;
use strict;
...
return $self;
}
1
- or download this
#!/usr/bin/perl -w
...
Usage : $0 stop|start|restart|status
USAGE
}
- or download this
error_recipient: youremail@yourdomain.com
email_on_die: 1
sleep_for: 4
- or download this
package My::Foo;
use Moose;
...
my $self = shift;
print "Hello World (how un-original)\n";
}
- or download this
#!/usr/bin/perl -w
use strict;
...
my $foo = My::Foo->new;
my $demon = My::Demonize->new;
$demon->run(\$foo);