Skip to content

Commit

Permalink
Merge pull request #68 from ekohl/update-fact-docs
Browse files Browse the repository at this point in the history
Update the documentation of facts
  • Loading branch information
bastelfreak committed Mar 6, 2018
2 parents e9a6b2f + 857131b commit 7c3a398
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 7c3a398

Please sign in to comment.