Method: SimpleDaemonize.stop
- Defined in:
- lib/shared/simple_daemonize.rb
.stop(pid_path) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/shared/simple_daemonize.rb', line 17 def self.stop(pid_path) return unless File.exists?(pid_path) pid = File.read(pid_path) system "kill -9 #{pid} &> /dev/null" system "rm #{pid_path} &> /dev/null" end |