[Catalyst] upstart script for Starman-based app?
bobtfish at bobtfish.net
Thu May 3 10:09:55 GMT 2012
On 3 May 2012, at 08:24, Octavian Rasnita wrote:
> Hi all,
> Does anyone have an upstart script that can be used for automaticly starting a Cat app using Starman?
> I use Perlbrew and local::lib and I start the app in my own account and not as root and I don't know how to make upstart start the app under my account.
> Maybe it will be helpful to see an upstart script that works, and try to adapt it.
Just write an upstart script that executes su - your user -c'xxxxx'. Or write a shell script that starts the app in the right way (when run as root) and execute that from upstart.
Except you do not want to run the app as the same user which installed it in production. You also don't want to run it as root (of course), but running it as your user gives the app permissions to re-write any of your files, including it's own source code…
More information about the Catalyst