On Tue, Jan 28, 2020 at 05:29:44PM +0100, Andreas Henriksson wrote:
> Hi Michael,
> 
> On Tue, Jan 28, 2020 at 04:38:36PM +0100, Michael Biebl wrote:
[....]
> > /lib/init/vars.sh
> 
> From random samples this seems exctusively used from init scripts (and
> examples of init scripts), so I'd say a masking native systemd unit
> would be my preferable fix (rather than a sysvinit-utils dependency).
> 
> There are 280 codesearch hits.
> 
> > 
> > Those are the more tricky ones. A lot of init scripts use them.
> > Not having those installed will render the init scripts of packages
> > broken. It's less of an issue, if a package ships a native service file.
> > (Do we know for how many this is the case, i.e. no .service file, SysV
> > init script using init-d-script and/or vars.sh?)
> 
> (I just have to start by saying, dropping 'Essential: yes' doesn't mean
> people will stop having sysvinit-utils installed. The literal definition
> of 'Priority: required' is that your system will break if you remove
> this package. I guess you're thinking ahead of potential future lowering
> the priority....)
> 
> I haven't investigated how many of the init-d-script and vars.sh issues
> are already solved. I'll however volunteer to look all of the affected
> packages over (and hopefully submit patches for them) once the
> 'Essential: yes' bit is dropped.
> 
> (I'll *not* look them over before 'Essential: yes' is dropped, simply
> because that's alot of work that will rot and will have to be redone
> again and again and again. So just a waste of my time.)
[...]

So I couldn't resist and made a crude hack to try get some numbers.
I wouldn't trust this to be the exact, but it should give a ballpark
figure.

For each of the 280 hits on codesearch.debian.net (source packages),
the binary packages built from it where downloaded, checked if it
had any init script, if it used vars.sh, and if there was a service
with the same name masking it (NOTE: No checking if the service was
invoking the init script where done!).

The result where:
* 95 source packages produce binary packages with init scripts
  that use vars.sh but has no matching service file.
* 126 init scripts in total uses vars.sh without having a matching
  unit file.

Please note that this does not account for any complex cases, it's
just a crude hack after all.
Please also note that some of these probably should not be fixed,
eg. initscripts is an obvious example (or anything from src:sysvinit).
There are also other packages that simply exists to fill a gap in the
sysvinit world, like llmnrd, which is debatable.

Full list below:
No matching service for /etc/init.d/activemq in activemq (src:activemq)
No matching service for /etc/init.d/ahcpd in ahcpd (src:ahcpd)
No matching service for /etc/init.d/amavisd-snmp-subagent in amavisd-new 
(src:amavisd-new)
No matching service for /etc/init.d/amavis-mc in amavisd-new (src:amavisd-new)
No matching service for /etc/init.d/amule-daemon in amule-daemon (src:amule)
No matching service for /etc/init.d/anope in anope (src:anope)
No matching service for /etc/init.d/aprx in aprx (src:aprx)
No matching service for /etc/init.d/babeld in babeld (src:babeld)
No matching service for /etc/init.d/bareos-dir in bareos-director (src:bareos)
No matching service for /etc/init.d/bareos-fd in bareos-filedaemon (src:bareos)
No matching service for /etc/init.d/bareos-sd in bareos-storage (src:bareos)
No matching service for /etc/init.d/calendarserver in calendarserver 
(src:calendarserver)
No matching service for /etc/init.d/camo in camo (src:camo)
No matching service for /etc/init.d/cfengine3 in cfengine3 (src:cfengine3)
No matching service for /etc/init.d/charybdis in charybdis (src:charybdis)
No matching service for /etc/init.d/c-icap in c-icap (src:c-icap)
No matching service for /etc/init.d/citadel in citadel-server (src:citadel)
No matching service for /etc/init.d/citadel in citadel-server (src:citadel)
No matching service for /etc/init.d/consolation in consolation (src:consolation)
No matching service for /etc/init.d/crtmpserver in crtmpserver (src:crtmpserver)
No matching service for /etc/init.d/saslauthd in sasl2-bin (src:cyrus-sasl2)
No matching service for /etc/init.d/ddclient in ddclient (src:ddclient)
No matching service for /etc/init.d/diaspora in diaspora-common 
(src:diaspora-installer)
No matching service for /etc/init.d/diod in diod (src:diod)
No matching service for /etc/init.d/dnsproxy in dnsproxy (src:dnsproxy)
No matching service for /etc/init.d/dtc-xen-firewall in dtc-xen-firewall 
(src:dtc-xen)
No matching service for /etc/init.d/dtc-xen-firewall in dtc-xen-firewall 
(src:dtc-xen)
No matching service for /etc/init.d/dump1090-mutability in dump1090-mutability 
(src:dump1090-mutability)
No matching service for /etc/init.d/edac in edac-utils (src:edac-utils)
No matching service for /etc/init.d/elog in elog (src:elog)
No matching service for /etc/init.d/errbot in errbot (src:errbot)
No matching service for /etc/init.d/fp-facilitator in flashproxy-facilitator 
(src:flashproxy)
No matching service for /etc/init.d/fp-registrar-email in 
flashproxy-facilitator (src:flashproxy)
No matching service for /etc/init.d/fp-reg-decryptd in flashproxy-facilitator 
(src:flashproxy)
No matching service for /etc/init.d/freelan in freelan (src:freelan)
No matching service for /etc/init.d/gapd in gap-scscp (src:gap-scscp)
No matching service for /etc/init.d/git-daemon in git-daemon-sysvinit (src:git)
No matching service for /etc/init.d/gmediarender in gmediarender 
(src:gmrender-resurrect)
No matching service for /etc/init.d/gnunet in gnunet (src:gnunet)
No matching service for /etc/init.d/gross in gross (src:gross)
No matching service for /etc/init.d/guidedog in guidedog (src:guidedog)
No matching service for /etc/init.d/gvpe in gvpe (src:gvpe)
No matching service for /etc/init.d/heimdal-kcm in heimdal-kcm (src:heimdal)
No matching service for /etc/init.d/heimdal-kdc in heimdal-kdc (src:heimdal)
No matching service for /etc/init.d/httpry in httpry-daemon (src:httpry)
No matching service for /etc/init.d/igmpproxy in igmpproxy (src:igmpproxy)
No matching service for /etc/init.d/inetsim in inetsim (src:inetsim)
No matching service for /etc/init.d/ipkungfu in ipkungfu (src:ipkungfu)
No matching service for /etc/init.d/ipwatchd in ipwatchd (src:ipwatchd)
No matching service for /etc/init.d/istgt in istgt (src:istgt)
No matching service for /etc/init.d/jamnntpd in jamnntpd (src:jamnntpd)
No matching service for /etc/init.d/kup-server in kup-server (src:kup)
No matching service for /etc/init.d/lava-coordinator in lava-coordinator 
(src:lava-coordinator)
No matching service for /etc/init.d/lavapdu-runner in lavapdu-daemon 
(src:lavapdu)
No matching service for /etc/init.d/lavapdu-listen in lavapdu-daemon 
(src:lavapdu)
No matching service for /etc/init.d/sslh in libnet-proxy-perl 
(src:libnet-proxy-perl)
No matching service for /etc/init.d/llmnrd in llmnrd (src:llmnrd)
No matching service for /etc/init.d/lprng in lprng (src:lprng)
No matching service for /etc/init.d/maradns in maradns (src:maradns)
No matching service for /etc/init.d/maradns-zoneserver in maradns-zoneserver 
(src:maradns)
No matching service for /etc/init.d/masqmail in masqmail (src:masqmail)
No matching service for /etc/init.d/minicoredumper in minicoredumper 
(src:minicoredumper)
No matching service for /etc/init.d/minidlna in minidlna (src:minidlna)
No matching service for /etc/init.d/mrs in mrs (src:mrs)
No matching service for /etc/init.d/mysecureshell in mysecureshell 
(src:mysecureshell)
No matching service for /etc/init.d/n2n in n2n (src:n2n)
No matching service for /etc/init.d/ndpmon in ndpmon (src:ndpmon)
No matching service for /etc/init.d/ndppd in ndppd (src:ndppd)
No matching service for /etc/init.d/netplug in netplug (src:netplug)
No matching service for /etc/init.d/npd6 in npd6 (src:npd6)
No matching service for /etc/init.d/openalpr-daemon in openalpr-daemon 
(src:openalpr)
No matching service for /etc/init.d/orthanc in orthanc (src:orthanc)
No matching service for /etc/init.d/p910nd in p910nd (src:p910nd)
No matching service for /etc/init.d/perdition in perdition (src:perdition)
No matching service for /etc/init.d/perlbal in perlbal (src:perlbal)
No matching service for /etc/init.d/pglistener in pglistener (src:pglistener)
No matching service for /etc/init.d/gld in postfix-gld (src:postfix-gld)
No matching service for /etc/init.d/powerman in powerman (src:powerman)
No matching service for /etc/init.d/psad in psad (src:psad)
No matching service for /etc/init.d/ptpd in ptpd (src:ptpd)
No matching service for /etc/init.d/ptunnel in ptunnel (src:ptunnel)
No matching service for /etc/init.d/ptunnel-ng in ptunnel-ng (src:ptunnel-ng)
No matching service for /etc/init.d/yhsm-daemon in yhsm-daemon 
(src:python-pyhsm)
No matching service for /etc/init.d/yhsm-validation-server in 
yhsm-validation-server (src:python-pyhsm)
No matching service for /etc/init.d/yhsm-yubikey-ksm in yhsm-yubikey-ksm 
(src:python-pyhsm)
No matching service for /etc/init.d/radicale in radicale (src:radicale)
No matching service for /etc/init.d/ramond in ramond (src:ramond)
No matching service for /etc/init.d/rng-tools-debian in rng-tools-debian 
(src:rng-tools-debian)
No matching service for /etc/init.d/rspamd in rspamd (src:rspamd)
No matching service for /etc/init.d/sagan in sagan (src:sagan)
No matching service for /etc/init.d/sendmail in sendmail-bin (src:sendmail)
No matching service for /etc/init.d/sendmail in sendmail-bin (src:sendmail)
No matching service for /etc/init.d/shellinabox in shellinabox (src:shellinabox)
No matching service for /etc/init.d/smtpprox-loopprevent in 
smtpprox-loopprevent (src:smtpprox-loopprevent)
No matching service for /etc/init.d/sniproxy in sniproxy (src:sniproxy)
No matching service for /etc/init.d/snmptt in snmptt (src:snmptt)
No matching service for /etc/init.d/solarpowerlog in solarpowerlog 
(src:solarpowerlog)
No matching service for /etc/init.d/squeezelite in squeezelite (src:squeezelite)
No matching service for /etc/init.d/sx in sx (src:sx)
No matching service for /etc/init.d/bootlogd in bootlogd (src:sysvinit)
No matching service for /etc/init.d/urandom in initscripts (src:sysvinit)
No matching service for /etc/init.d/umountroot in initscripts (src:sysvinit)
No matching service for /etc/init.d/umountnfs.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/umountfs in initscripts (src:sysvinit)
No matching service for /etc/init.d/rmnologin in initscripts (src:sysvinit)
No matching service for /etc/init.d/rc.local in initscripts (src:sysvinit)
No matching service for /etc/init.d/mountnfs.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/mountkernfs.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/mountdevsubfs.sh in initscripts 
(src:sysvinit)
No matching service for /etc/init.d/mountall.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/hostname.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/checkroot.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/checkfs.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/brightness in initscripts (src:sysvinit)
No matching service for /etc/init.d/bootmisc.sh in initscripts (src:sysvinit)
No matching service for /etc/init.d/bootlogs in initscripts (src:sysvinit)
No matching service for /etc/init.d/tarantool-lts in tarantool-lts-common 
(src:tarantool-lts)
No matching service for /etc/init.d/uwsgi in uwsgi (src:uwsgi)
No matching service for /etc/init.d/webcit in citadel-webcit (src:webcit)
No matching service for /etc/init.d/webcit in citadel-webcit (src:webcit)
No matching service for /etc/init.d/webfs in webfs (src:webfs)
No matching service for /etc/init.d/xendomains in xen-utils-common (src:xen)
No matching service for /etc/init.d/xen in xen-utils-common (src:xen)
No matching service for /etc/init.d/yubikey-server-c in yubikey-server-c 
(src:yubikey-server-c)
No matching service for /etc/init.d/zookeeper in zookeeperd (src:zookeeper)
No matching service for /etc/init.d/zurl in zurl (src:zurl)

Regards,
Andreas Henriksson

Reply via email to