Logo: Relish

  1. Sign in

Project: Trema

-d (--daemonize) option

-d (--daemonize) runs a controller as a daemon

Background
Given
I set the environment variables to:
variable value
TREMA_LOG_DIR .
TREMA_PID_DIR .
TREMA_SOCKET_DIR .
And
a file named "null_controller.rb" with:
class NullController < Trema::Controller; end
Scenarios
  • @sudo
-d option
When
I successfully run trema run null_controller.rb -d
Then
the command returns immediately
  • @sudo
--daemonize option
When
I successfully run trema run null_controller.rb --daemonize
Then
the command returns immediately

Last published over 3 years ago by Yasuhito Takamiya.