Skip to content

Commit

Permalink
Update the documentation of facts
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Mar 5, 2018
1 parent e9a6b2f commit 857131b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/facter/systemd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# Determine whether systemd is the init system on the node
#
# Resolution:
# Check the name of the process 1 (ps -p 1)
# Check if the service_provider fact is systemd
#
# Caveats:
# If you override the service provider then it will return false, even if the
# underlying system still is systemd.
#

# Fact: systemd_version
Expand All @@ -15,7 +17,7 @@
# Determine the version of systemd installed
#
# Resolution:
# Check the output of systemctl --version
# Check the output of systemctl --version
#
# Caveats:
#
Expand All @@ -26,7 +28,8 @@
# List all systemd internal real services + their state
#
# Resolution:
# Check the output of systemctl --version
# Check the output of systemctl --list-unit-files systemd-* and parse it into
# a hash with the status
#
# Caveats:
#
Expand Down

0 comments on commit 857131b

Please sign in to comment.