From: Sergey Vlasov <vsu@altlinux.ru> To: devel@lists.altlinux.org Subject: Re: [devel] Q: Порядок старта bluetooth Date: Sun, 19 Nov 2006 22:08:12 +0300 Message-ID: <20061119190812.GA7990@procyon.home> (raw) In-Reply-To: <20061119163420.GA12461@wrars-comp.wrarsdomain> [-- Attachment #1: Type: text/plain, Size: 1510 bytes --] On Sun, Nov 19, 2006 at 09:34:20PM +0500, Andrey Rahmatullin wrote: > Навеяно багами 8874, 9166 и 10015. > > Есть у нас service bluetooth, запускающий помимо прочего hcid. hcid при > запуске хочет запущенный messagebus, а также железку (без железки либо > модулей не стартует). > > Сейчас у нас сервис стартует через udev при втыкании железки либо загрузке > системы. Кстати, где-то должно быть ещё одно место, откуда он запускается для устройств, не обнаруживаемых автоматически (hci_uart). > В рез-те hcid не находит messagebus и дохнет. Я не уверен, что > messagebus можно переносить до udev. Именно - как минимум из-за /dev/log (я надеюсь, он туда пишет?). > Если пускать bluetooth через инитскрипты и оторвать от udev - он будет > падать при отсутствии железки, а при её втыкании не будет пускаться. Можно обновить udev до >= 099, после чего поставить в его скрипт инициализации вызов udevtrigger --attr-match=dev, чтобы он не пытался загружать все модули сразу (и выполнять загрузку модулей позднее, как это происходило раньше - при запуске сервиса hotplug). Хотя в случае, если модули USB оказались загружены раньше (например, в результате запихивания их в initrd для возможности использования USB-клавиатуры на раннем этапе загрузки системы), всё равно можно напороться на race. Тогда можно добавлять ещё костыли - например, проверять в запускаемом из udev скрипте, запущен ли сервис messagebus, а где-нибудь в конце загрузки дёргать udevtrigger --retry-failed. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-11-19 19:08 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-19 16:34 Andrey Rahmatullin 2006-11-19 19:08 ` Sergey Vlasov [this message] 2006-11-19 19:11 ` Andrey Rahmatullin 2006-11-20 7:25 ` Vyaheslav Dikonov 2006-11-20 9:47 ` Vitaly Ostanin 2006-11-20 9:50 ` Alexey I. Froloff 2006-11-20 10:10 ` Vitaly Ostanin 2006-11-20 13:44 ` Andrey Rahmatullin 2006-11-20 13:57 ` Vitaly Ostanin 2006-11-20 14:11 ` Andrey Rahmatullin 2006-11-20 11:41 ` Igor Zubkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20061119190812.GA7990@procyon.home \ --to=vsu@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git