Adding &'s to the line where I execute grails seems to be breaking things on any computer I try (so far ubuntu 11.10 and cent 5.something)

Example

grails run-app  #works beautiful
nohup grails run-app #works beautiful
grails run-app & # no working :(

I get results like this:

$ grails run-app &
[3] 16385
$
[3]+  Stopped                 grails run-app

What am I doing wrong?

asked Mar 19, 2012 at 23:25

user avatar

Try

( nohup grails run-app --non-interactive 2>&1 > /dev/null & )

Thanks to Leighton S. for this.

answered Jun 27, 2012 at 22:59

user avatar

1

Another way to fix execution of grails run-app in the background is to add this option to you user bashrc/profile:

export GRAILS_OPTS="-Djline.terminal=false"

answered Mar 9, 2015 at 8:22

user avatar

Not the answer you're looking for? Browse other questions tagged or ask your own question.