summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/services.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index ea41eb878..02a9e38c6 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -342,6 +342,14 @@ sub doit {
}
}
+sub running_systemd() {
+ run_program::rooted($::prefix, '/bin/mountpoint', '-q', '/sys/fs/cgroup/systemd');
+}
+
+sub has_systemd() {
+ run_program::rooted($::prefix, '/bin/rpm', '-q', 'systemd-sysvinit');
+}
+
sub xinetd_services() {
local $ENV{LANGUAGE} = 'C';
my @xinetd_services;