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.