Method: Puppet::Daemon#reexec
- Defined in:
- lib/puppet/daemon.rb
#reexec ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
83 84 85 86 87 88 89 90 |
# File 'lib/puppet/daemon.rb', line 83 def reexec raise Puppet::DevError, _("Cannot reexec unless ARGV arguments are set") unless argv command = $PROGRAM_NAME + " " + argv.join(" ") Puppet.notice "Restarting with '#{command}'" stop(:exit => false) exec(command) end |