For any custom application I create which needs to run at startup, what I normally do is have an entry in my /etc/init.local that executes the app.
Now if I just put
Code:
/data/app/prod/start &
And the app writes data to relative paths, it will be writing data all over the system. Is there a method of starting a script so it is aware of the folder it is in? Sure I can do "cd [folder]" then start the app, but wondering if there's a better way.