To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaborator-S (--socket_dir) option
-S (--socket_dir) option specifies the location to find socket files
- Background
-
- Given
-
I set the environment variables to:
variable value TREMA_LOG_DIR . TREMA_PID_DIR . TREMA_SOCKET_DIR .
- Scenarios
-
- -S option
-
- Given
-
a file named "null_controller.rb" with:
class NullController < Trema::Controller; end
- And
-
I successfully run
trema run null_controller.rb -d
- When
-
I successfully run
trema killall NullController -S .
- And
- the file "NullController.pid" should not exist
- --socket_dir option
-
- Given
-
a file named "null_controller.rb" with:
class NullController < Trema::Controller; end
- And
-
I successfully run
trema run null_controller.rb -d
- When
-
I successfully run
trema killall NullController --socket_dir .
- And
- the file "NullController.pid" should not exist
- "Controller process does not exist" error
-
- Given
-
a file named "null_controller.rb" with:
class NullController < Trema::Controller; end
- And
-
I successfully run
trema run null_controller.rb -d
- When
-
I run
trema killall NullController -S /tmp
- Then
- the exit status should not be 0
- And
-
the output should contain:
Controller process "NullController" does not exist.
- And
- the file "NullController.pid" should exist
Last published over 5 years ago by Yasuhito Takamiya.