Add a +Restart plugin that restarts the class on SIGHUP (configurable)
[gitmo/MooseX-Runnable.git] / example / LongRunning.pm
1 package LongRunning;
2 use Moose;
3 use 5.010;
4
5 with 'MooseX::Runnable';
6
7 # I use this to test the +Restart plugins
8
9 sub run {
10     say "[$$] App is starting";
11     while(1){
12         sleep 86400;
13     }
14 }
15
16 1;