I would like to run a grails server in the background, so that stating and stopping it would be done using:
sudo service my-server start
sudo service my-server stopThe grails server is currently executed using a shell script, which sets a few environment variables and runs grails.
What's the standard way to run this script as a service?
1 Answer
Either use Upstart (see ) or create a script in /etc/init.d (see e.g. here). The former is more modern and flexible, but the latter is easier.