On Tue, 12 Jul 2011 16:52:22 -0700 Jason Gunthorpe <[email protected]> wrote:
> On Tue, Jul 12, 2011 at 04:27:40PM -0700, Ira Weiny wrote: > > > - @sbindir@/opensm --daemon $OPTIONS > /dev/null > > + daemon --pidfile=$PIDFILE @sbindir@/opensm --daemon $OPTIONS > > > /dev/null > > You need to drop the --daemon from opensm if you run it under daemon.. > > The usual way to do this is to have the daemon drop a pidfile to the > location set by its --pidfile argument after it forks, but before the > command returns. You mean like Alex's patch did? I have not seen this done before. I checked out apache's httpd command and I don't see it doing this. > > If --pidfile is not given it should not drop a pidfile anyplace. "it" is opensm in this case? > > Generally the daemon should make sure it can run without exiting > before forking, which is why this approach is prefered to using the > daemon command. Ok, perhaps I am backwards, as I said I have not seen this done before. Ira > > Jason -- Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
