:: Re: [DNG] Listing /etc/init.d scrip…
Top Pagina
Delete this message
Reply to this message
Auteur: Olaf Meeuwissen
Datum:  
Aan: Joel Roth
CC: dng
Onderwerp: Re: [DNG] Listing /etc/init.d scripts (was Re: New goodies from systemd)
Hi Joel,

Joel Roth via Dng <dng@???> writes:

> On Sun, Aug 06, 2023 at 02:01:37PM +0900, Olaf Meeuwissen via Dng wrote:
>> I poked around in the Contents files with `apt-file` on my Daedalus
>> machine to get an idea of the *full* list of init.d scripts, whether
>> installed or not. There are a whopping 1184 of them, 16 of which are
>> provided by more than one binary package. The init.d files are spread
>> out over 1076 binary packages, so some packages contain more than one.
>
> It may be worth testing if these ~1000 binary packages
> all contain a systemd init unit. If a large portion of
> debian packages lack this, debian devels are unlikely to
> break them all by discontinuing support for sysvinit
> scripts, even if systemd devels are pushing for it.


Interesting idea. First, I collected lists of binary packages with
init.d files and systemd *.service files.

apt-file search etc/init.d/ | cut -d: -f1 | sort | uniq > init.d
apt-file search -x 'systemd/system/.+\.service' | cut -d: -f1 | sort | uniq > service

Next, counts of packages that have both

$ cat init.d service | sort | uniq -d | wc -l
774

and those that only have one or the other

$ cat init.d service | sort | uniq -u | wc -l
737

Figuring out how many only have init.d files

$ diff -U0 init.d service | grep -E '^-[^-]' | wc -l
302

and how many only have *.service files

$ diff -U0 init.d service | grep -E '^\+[^+]' | wc -l
435

If interested in which packages were counted, leave of the `| wc -l`
bit.

BTW, did you know that systemd ships 113 *.service files itself? And
that there are another 31 in systemd-* packages? And yet another five
more in *-systemd packages?

For comparison, initscripts "only" ships 25 init.d files.

Disclaimer: I haven't looked at the contents of any of these files.
Come to think of it, the init.d files include /etc/init.d/README :-P

Hope this helps,
--
Olaf Meeuwissen