[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

exclude systemd templates from missing init.d check



the check for package-supports-alternative-init-but-no-init.d-script
contains many false positives and it seems to me that some of them are
about systemd templates, that are not supported by init.d scripts

this (untested) patch should exclude templates from the check

ciao!
--- init.d.pm.orig	2020-07-10 04:01:14.512576200 +0200
+++ init.d.pm	2020-07-10 04:16:12.612551662 +0200
@@ -548,7 +548,7 @@
     # check for missing init.d script when alternative init system is present
 
     if (   $file =~ m,etc/sv/([^/]+)/run$,
-        or $file =~ m,lib/systemd/system/([^/]*?)@?\.service,) {
+        or $file =~ m,lib/systemd/system/([^/@]+)\.service,) {
 
         my $service = $1;
 

Reply to: