From owner-freebsd-bluetooth@freebsd.org Mon Sep 21 00:58:01 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0776A0695A for ; Mon, 21 Sep 2015 00:58:01 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D8E51342 for ; Mon, 21 Sep 2015 00:58:01 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by wicfx3 with SMTP id fx3so125008324wic.1 for ; Sun, 20 Sep 2015 17:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=v9xdLgcEa8MEq21N/VPlJDqwCTS6UPr4kwbpvrQpS+U=; b=iDklbNM348BbxPZ6IHTwhHVtt8giTOU0d582X9MqxwaDJMHUruJPk+Bh260ctC/tps Vs7nnFI7+4LXGfcb0AYdBK/V6cw/fRHxK6jePmBweBwi6+0wJUjtNMaMLTyOMHP5r2mK WgKoowh4e7K1/erCd2dlfLS9KJPbQVfwkkjE5qUbTf/3w9SXTaRY9jZHAu2ajN6/No5Q ziN+/BvEJ/AiZqOVvKUqBm4uN28AGrTKxgze/e2zG4DLozgAYm6E6z+aISaq93EHurMl bGbRfeDCAuSwVAfGaYRtp2o8ubDHLpWCQyozL5bdZFOpAjPDxqwyzRetd9J7rV7jJ2SY VUgA== MIME-Version: 1.0 X-Received: by 10.194.82.167 with SMTP id j7mr20187648wjy.123.1442797078848; Sun, 20 Sep 2015 17:57:58 -0700 (PDT) Received: by 10.28.146.132 with HTTP; Sun, 20 Sep 2015 17:57:58 -0700 (PDT) In-Reply-To: <55FF51F7.8030404@erdgeist.org> References: <55FF418D.10806@erdgeist.org> <55FF51F7.8030404@erdgeist.org> Date: Sun, 20 Sep 2015 17:57:58 -0700 Message-ID: Subject: Re: service bluetooth start ubt0 fails every other time From: Maksim Yevmenkin To: Dirk Engling Cc: "freebsd-bluetooth@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2015 00:58:01 -0000 /etc/rc.d/bluetooth start/stop is executed from devd (on device arrival / departure). there is no real need to execute bluetooth start/stop by hand. i would implement this as part of /etc/rc.d/bluetooth status command (just like other rc.d services), i.e. # /etc/rc.bluetooth status ubt0 should print status, i.e. running/non-running. very similar to daemon process status thanks, max On Sun, Sep 20, 2015 at 5:40 PM, Dirk Engling wrote: > On 21.09.15 01:30, Dirk Engling wrote: > >> Maybe the rc script should check if the stack is already set up and exit >> with a more verbose error and then not shut down the interface? > > I think the attached patch does what is needed. Looking forward to your > comments. > > erdgeist > > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to "freebsd-bluetooth-unsubscribe@freebsd.org"