Sha256: 4c5ef8483853f54de10d488dea573bf32fb3f992ded7c3a2f474abae300a957f
Contents?: true
Size: 731 Bytes
Versions: 25
Compression:
Stored size: 731 Bytes
Contents
module Capricorn module Actors # :nodoc: class PassengerActor < Capricorn::Actor after_install_satellite :restart after_link_satellite :restart # restart the current satellite. def restart system.as_user(system.web_user, system.web_group) do tmp_restart = system.passenger_restart_txt FileUtils.touch tmp_restart, :verbose => true end end module Config # set the passneger restart file. def passenger_restart_txt(&block) satellite_option(:passenger_restart_txt, block) { |s, v| v || File.join(satellite_root, 'tmp', 'restart.txt') } end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems