artifactory 3.3.1 (new formula)

This is a new formula for the Artifactory Open Source Binary repository by JFrog.com. It is a competitor of nexus, which is already part of Homebrew. 
The script 'artifactory.sh check' gives exit code 1 if the server is _not_ running. It should be possible to launch the daemon with 'nohup artifactory.sh' or something and then execute 'artifactory.sh check' to assert exit code is 0. My problem is, that I am not comfortable enough with ruby and homebrew's test support. I wonder, how I could implement a timeout if something fails or how to stop the daemon.

I would like to test with a different approach:
- launch 'artifactory.sh'
- search the output for 'successfully started artifactory'
- terminate 'artifactory.sh'
- or: after X seconds kill artifactory.sh and fail the test

Could you give me a hint how to implement this? Maybe an already existing formula? Thanks.