daemon

Process.daemon() â 0
Process.daemon(nochdir=nil,noclose=nil) â 0
Class Public methods

Detach the process from controlling terminal and run in the background as system daemon. Unless the argument nochdir is true (i.e. non false), it changes the current working directory to the root (â/â). Unless the argument noclose is true, daemon() will redirect standard input, standard output and standard error to /dev/null. Return zero on success, or raise one of Errno::*.

doc_ruby_on_rails
2015-04-28 20:50:59
Comments
Leave a Comment

Please login to continue.