Skip to content

Commit 2aee693

Browse files
authored
Merge pull request #165 from ekohl/respect-systemd-RUNTIME_DIRECTORY
Respect systemd's RUNTIME_DIRECTORY environment variable
2 parents 5e563cf + 9634113 commit 2aee693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/util/run_mode.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def public_dir
8181
end
8282

8383
def run_dir
84-
which_dir("/var/run/puppetlabs", "~/.puppetlabs/var/run")
84+
ENV.fetch('RUNTIME_DIRECTORY') { which_dir("/var/run/puppetlabs", "~/.puppetlabs/var/run") }
8585
end
8686

8787
def log_dir

0 commit comments

Comments
 (0)