lib/bluepill/process.rb in bluepill-0.0.9 vs lib/bluepill/process.rb in bluepill-0.0.10
- old
+ new
@@ -266,12 +266,13 @@
self.skip_ticks_for(stop_grace_time)
end
def restart_process
if restart_command
- logger.warning "Executing restart command: #{restart_command}"
-
cmd = process_command(restart_command)
+
+ logger.warning "Executing restart command: #{cmd}"
+
result = System.execute_blocking(cmd, :uid => self.uid, :gid => self.gid)
unless result[:exit_code].zero?
logger.warning "Restart command execution returned non-zero exit code:"
logger.warning result.inspect
\ No newline at end of file