summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-17 02:05:55 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-17 02:05:55 +0000
commitf4f555d0ec405e215d1b2a44b18fee1c4fc2e0de (patch)
treeb969decf4716a4dc7f2488625f510c081cc3c709 /lib
parent9a672ec630222dd6e7f07a9d3ccd75c9bca82b19 (diff)
downloadpuppet-f4f555d0ec405e215d1b2a44b18fee1c4fc2e0de.tar.gz
puppet-f4f555d0ec405e215d1b2a44b18fee1c4fc2e0de.tar.xz
puppet-f4f555d0ec405e215d1b2a44b18fee1c4fc2e0de.zip
Renamed Puppet.name to Puppet.execname so rails 1.2 doesn't freak out
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2208 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/daemon.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/daemon.rb b/lib/puppet/daemon.rb
index 91661e9e7..26704af88 100755
--- a/lib/puppet/daemon.rb
+++ b/lib/puppet/daemon.rb
@@ -13,7 +13,7 @@ module Puppet
"Whether to store a PID file for the daemon."])
def daemonname
#$0.sub(/.+#{File::SEPARATOR}/,'')
- Puppet.name
+ Puppet.execname
end
# The path to the pid file for this server
@@ -40,9 +40,9 @@ module Puppet
Puppet::Util::Log.reopen
rescue => detail
File.open("/tmp/daemonout", "w") { |f|
- f.puts "Could not start %s: %s" % [Puppet.name, detail]
+ f.puts "Could not start %s: %s" % [Puppet.execname, detail]
}
- Puppet.err "Could not start %s: %s" % [Puppet.name, detail]
+ Puppet.err "Could not start %s: %s" % [Puppet.execname, detail]
exit(12)
end
end
@@ -61,8 +61,8 @@ module Puppet
# yuck; separate http logs
file = nil
- Puppet.config.use(:puppet, :certificates, Puppet.name)
- if Puppet.name == "puppetmasterd"
+ Puppet.config.use(:puppet, :certificates, Puppet.execname)
+ if Puppet.execname == "puppetmasterd"
file = Puppet[:masterhttplog]
else
file = Puppet[:httplog]