File Coverage

blib/lib/Devel/AssertOS/OSFeatures/Systemd.pm
Criterion Covered Total %
statement 13 14 92.8
branch n/a
condition n/a
subroutine 5 6 83.3
pod n/a
total 18 20 90.0


line stmt bran cond sub pod time code
1             package Devel::AssertOS::OSFeatures::Systemd;
2              
3             our $VERSION = '1.0';
4              
5 1     1   6 use Devel::CheckOS;
  1         4  
  1         42  
6 1     1   6 use strict;
  1         7  
  1         24  
7 1     1   4 use warnings;
  1         3  
  1         29  
8 1     1   5 no warnings 'redefine';
  1         2  
  1         94  
9              
10 1     1   22 sub os_is { -d '/run/systemd/system' }
11             Devel::CheckOS::die_unsupported() unless(os_is());
12              
13             sub expn {
14 0     0     "The operating system uses systemd as init instead of something more sensible"
15             }
16              
17             =head1 NAME
18              
19             Devel::AssertOS::OSFeatures::Systemd - check whether
20             the OS we're running on uses systemd instead of a sensible init.
21              
22             =head1 SYNOPSIS
23              
24             See L and L
25              
26             =head1 COPYRIGHT and LICENCE
27              
28             Copyright 2023 David Cantrell
29              
30             This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
31              
32             =cut
33              
34             1;