[chef] A weird problem: sudo su www-data -c 'sudo chef-server -C /etc/chef/server.rb -c2 -p 4004" does not work...


Chronological Thread 
  • From: Dikang Gu < >
  • To: chef < >
  • Subject: [chef] A weird problem: sudo su www-data -c 'sudo chef-server -C /etc/chef/server.rb -c2 -p 4004" does not work...
  • Date: Tue, 26 Jan 2010 14:28:58 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tGnsVdBEI/l78uq5HOlr+KafwjMeQSagxXF1k4tfIFRNXeNJB15CLHInsuj75EpNEk l0PARp7f10pHs79EAZtI/JyvUUIJy68fiSyC5nWXDbaRLGTbeXqgBtmn/uIVUEoYAMgV /PppeNkA4su4r9DdFpJZLvh5wc3fy/t+3QKEA=

Hi guys,

I'd like to use a cgi script to start the chef server, and I use a c script to give the "root" permissions to the cgi script (you know this method which can be easily found on the internet ). But it does not work...

And I tried the method:  sudo su www-data -c 'sudo chef-server -C /etc/chef/server.rb -c2 -p 4004" , which means create the chef server on port 4004. And the output of the command is "~ In 4650" which means the server is started at pid 4650, right?

But with no luck, the server is not started at all... why?

And then I tried to run the other command:  sudo su dikang -c 'sudo chef-server -C /etc/chef/server.rb -c2 -p 4004", the "dikang" is my normal user account. And this command worked well and the server on port 4004 is started... What's wrong with the www-data user? 

I'm working on chef 0.8, apache2 and ubuntu 9.10.

Could anyone give me the help please?

Thanks
Dikang
 



Archive powered by MHonArc 2.6.16.

§