From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,MSGID_FROM_MTA_HEADER, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: Re: Why "--pid" is deprecated? Date: Thu, 24 Dec 2009 11:17:35 -0800 Message-ID: <20091224191735.GA14191@dcvr.yhbt.net> References: <200912241436.26761.ibc@aliax.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261682586 1650 80.91.229.12 (24 Dec 2009 19:23:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2009 19:23:06 +0000 (UTC) To: unicorn list Original-X-From: mongrel-unicorn-bounces@rubyforge.org Thu Dec 24 20:22:59 2009 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Content-Disposition: inline In-Reply-To: <200912241436.26761.ibc@aliax.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Xref: news.gmane.org gmane.comp.lang.ruby.unicorn.general:242 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1NNtGw-0005pD-BE for gclrug-mongrel-unicorn@m.gmane.org; Thu, 24 Dec 2009 20:22:54 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1170718582CA; Thu, 24 Dec 2009 14:22:52 -0500 (EST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id B6FC018582C1 for ; Thu, 24 Dec 2009 14:17:37 -0500 (EST) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id A93041F528; Thu, 24 Dec 2009 19:17:36 +0000 (UTC) I=F1aki Baz Castillo wrote: > By inspecting bin/unicorn I've realized that "--pid" file exists but it's = > deprecated: > = > opts.on("-P", "--pid FILE", "DEPRECATED") do |f| > warn %q{Use of --pid/-P is strongly discouraged} > warn %q{Use the 'pid' directive in the Unicorn config file instead} > options[:pid] =3D f > end > = > Could I know why? In order to build a service init script is really commo= n the = > init script to handle the PID file so it can start, restart or stop the = > process runnining under that PID value. Hi I=F1aki, It conflicts/confuses the -P/--path setting in bin/unicorn_rails. An oversight on my part since I based unicorn_rails on script/server in Rails. So I suppose we're stuck with it for a while. > Which is the real advantage of using "pid" directive in config file rathe= r = > than "--pid"? Not much, pid files suck either way. Sadly there aren't many other options that's universally used/accepted. Using ENV["UNICORN_PID"] could be an option in the config file if you want to share it between the config and init script. -- = Eric Wong _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying