1

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.

Dmytro
  • 5,443
  • 2
  • 52
  • 50

1 Answers1

2

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:

  1. I used the modified previous version by msaffitz of the upstart/process.conf.erb and it started working
  2. See how to use a custom template for foreman
Community
  • 1
  • 1
Dmytro
  • 5,443
  • 2
  • 52
  • 50