summaryrefslogtreecommitdiffstats
path: root/perl-install/services.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r--perl-install/services.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index f6989806b..f852fe573 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -405,7 +405,7 @@ sub services() {
sub service_exists {
my ($service) = @_;
- -x "$::prefix/etc/rc.d/init.d/$service";
+ -x "$::prefix/etc/rc.d/init.d/$service" or -e "$::prefix/lib/systemd/system/$service.service" or -l "$::prefix/lib/systemd/system/$service.service";
}
sub restart ($) {