[chef] Re: 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] Re: 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:39:45 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=BKNy4lHpy3VRBn1swi8vXH6rOUGr6Lp6M3wEWpYgBhz8p231uU4SQp5ngYyORozdAQ S0/KWl+wdZec4Mzhs+ey05v/yEHt81cmx4KEOeKpZ0lUsXyCsX6t8yv3CDT8cLyppMmT Mbs2+CIdz5IqeCtxuZQTVoq7EWgmtDvOVJGWQ=

Is this a bug for chef 0.8 on ubuntu 9.10? 

Because the same command works well on chef 0.7 with ubuntu 9.04...

Dikang

On Tue, Jan 26, 2010 at 2:28 PM, Dikang Gu < "> > wrote:
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.

§