Method: Server#stop

Defined in:
lib/arldap/server.rb

#stopObject



106
107
108
109
110
111
112
113
114
# File 'lib/arldap/server.rb', line 106

def stop
  if @pidfile.pid
    puts "Sending TERM signal to process #{@pidfile.pid}" if @config[:debug]
    logger.info("Killing server at #{@pidfile.pid}")
    Process.kill("TERM", @pidfile.pid.to_i)
  else
     puts "Can't find pid.  Are you sure I'm running?"
   end
end