Problem with upstart script

Asked

Viewed 34 times

0

I’m trying to start my application in boot, but I’m not getting...the script in upstart calls another script, I’m not able to even know if the 2nd script is being called, follow 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 file server.log is not even being created, thanks for the help.

1 answer

1


Place the two scripts in the /etc/rc.local, one below the other. The first script will apparently give error even, because it uses a syntax that is not bash, it looks more like a descriptive file than the second one does.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.