Re: Proposal: let’s have a GR about the init system
On Sat, Oct 26, 2013 at 11:02:13PM +0100, Simon McVittie wrote:
> # systemd units on my laptop that are generated internally by systemd
> # when it reads a sysvinit script (or "LSB init script" as it
> # calls them)
> % systemctl list-units | grep LSB | wc -l
That's only currently loaded units, i.e. probably the ones which are/were
running, without --all.
> # systemd units on my laptop that are really systemd units,
> # only counting ".service" files (its closest equivalent of init
> # scripts) and not counting systemd's equivalents of the initscripts
> # package, or daemons from src:systemd
> % systemctl list-units | grep -v 'LSB\|systemd-' | grep '\.service' | wc -l
Also it's better to say systemctl list-units -t service --no-legend --all
then grep by type.