| 1 | package Devel::AssertOS::OSFeatures::Systemd; | ||
| 2 | |||
| 3 | our $VERSION = '1.0'; | ||
| 4 | |||
| 5 | 1 | ▶ | use Devel::CheckOS; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | no warnings 'redefine'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | sub os_is { -d '/run/systemd/system' } |
|
Subroutine
os_is: called CC=1 SCAR=0.0
| |||
| 11 | Devel::CheckOS::die_unsupported() unless(os_is()); | ||
| 12 | |||
| 13 | 0 | ▶ | sub expn { |
|
Subroutine
expn: not called CC=1 SCAR=6.9
| |||
| 14 | 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<Devel::CheckOS> and L<Devel::AssertOS> | ||
| 25 | |||
| 26 | =head1 COPYRIGHT and LICENCE | ||
| 27 | |||
| 28 | Copyright 2024 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; | ||