Date: Sun, 20 Sep 2015 17:57:58 -0700 From: Maksim Yevmenkin <maksim.yevmenkin@gmail.com> To: Dirk Engling <erdgeist@erdgeist.org> Cc: "freebsd-bluetooth@freebsd.org" <freebsd-bluetooth@freebsd.org> Subject: Re: service bluetooth start ubt0 fails every other time Message-ID: <CAFPOs6pePdu=dokS_%2BdZRdW60CXneWu_uSq_gP2ciwDBh5sKNg@mail.gmail.com> In-Reply-To: <55FF51F7.8030404@erdgeist.org> References: <55FF418D.10806@erdgeist.org> <55FF51F7.8030404@erdgeist.org>
next in thread | previous in thread | raw e-mail | index | archive | help
/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 <erdgeist@erdgeist.org> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFPOs6pePdu=dokS_%2BdZRdW60CXneWu_uSq_gP2ciwDBh5sKNg>