1 package MooseX::Daemonize::SignalHandling;
2 use strict; # because Kwalitee is pedantic
8 # this would be an excellent canidate for
9 # a parameterized role, since we would want
10 # to have the ability to specify which
11 # signals we want handled
13 requires 'handle_signal';
17 foreach my $signal (qw[ INT HUP ]) {
18 $SIG{$signal} = sub { $self->handle_signal($signal) };