Play Framework 2 upstart for RedHat
===

Here is upstart configuration for Ubuntu.
How can I adapt it for RedHat?

Questions are:

 1. There is no start-stop-daemon on RedHat.
 2. start/stop on runlevel - are values ok for RedHat?
 3. Any other corrections?

Thank you!

    # /etc/init/linka.conf
    description "Linka"

    env USER=linka
    env GROUP=nogroup
    env HOME=/home/backlink/web2
    env JAVA_OPTS="-Xms128M -Xmx512m -server -Dhttp.port=9002 -Dhttp.address=127.0.0.1 -Dconfig.file=/home/backlink/application.conf -Dlogger.file=/home/backlink/logger.xml"

    start on runlevel [2345]
    stop on runlevel [016]

    respawn
    expect daemon

    pre-start script
      rm -f ${HOME}/RUNNING_PID
    end script

    exec start-stop-daemon \
      --pidfile ${HOME}/RUNNING_PID --chuid $USER:$GROUP \
      --exec ${HOME}/start --background --start \
      -- $JAVA_OPTS > /dev/null 2>&1