Permalink
Browse files

check BSD::Resource version in SimpleDaemon

  • Loading branch information...
1 parent 56a98ae commit 5639e41254c80b6b51dbe9037530f6c38e633489 @berekuk committed Nov 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Ubic/Service/SimpleDaemon.pm
@@ -166,6 +166,10 @@ sub new {
if ($@) {
die "BSD::Resource is not installed";
}
+ if (BSD::Resource->VERSION < 1.29) {
+ # 1.29 supports string names for resources
+ die "BSD::Resource >= 1.29 required";
+ }
}
return bless {%$params} => $class;

0 comments on commit 5639e41

Please sign in to comment.