I use foreman to run Rails application on RedHat 6.4, but for some reason it just doesn't start it using the command sudo start myproject
on a server.
Actually, I use capistrano and the process is fully automated, but even a manual execution doesn't work.
After a lot of playing with upstart
tasks:
[root@server init]# start project-web-1
start: Unknown job: project-web-1
I determined the problem. It's in using setuid
in foreman
's upstart script
According to the answer, setuid
supported from the initctl
version 1.4
, but RedHat 6.4 has 0.6.5
[root@server ~]$ initctl --version
initctl (upstart 0.6.5)
The solution:
upstart/process.conf.erb
and it started workingforeman