Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Created December 15, 2016 13:49
Show Gist options
  • Select an option

  • Save lucaswerkmeister/06173ce1a44262775bea4411dc17708c to your computer and use it in GitHub Desktop.

Select an option

Save lucaswerkmeister/06173ce1a44262775bea4411dc17708c to your computer and use it in GitHub Desktop.
List services generated by systemd-sysv-generator
systemctl list-unit-files --state generated --type service --no-legend |
cut -d' ' -f1 |
while read unit; do
if [[ "$(systemctl show -p Documentation -- "$unit")" == "Documentation=man:systemd-sysv-generator(8)" ]]; then
printf '%s\n' "$unit";
fi;
done |
wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment