Problem with upstart script

0

I'm trying to start my application at boot, but I'm not getting it ... the upstart script calls another script, I can not even know if the 2nd script is being called, it follows the 2 scripts: 1st Script

description "Start OpenProject"
start on startup
script
exec su openproject -c "/home/openproject/Scripts/start-openproject.sh"
end script

2nd Script

#!/bin/bash -x

rm -f ~/server.log

source ~/.nodeenv/bin/activate >> ~/server.log 2>&1
cd /home/openproject/openproject
bundle exec rails server >> ~/server.log 2>&1

The server.log file is not being created, thanks for the help.

    
asked by anonymous 17.07.2015 / 17:06

1 answer

1

Place the two scripts in /etc/rc.local, one below the other. The first script is apparently going to make a mistake, because it uses a non-bash syntax, it looks more like a descriptive file than the second does.

    
04.10.2015 / 05:02