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.

If --pidfile is not given it should not drop a pidfile anyplace.

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.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to