All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastien Bacher <seb128@ubuntu.com>
To: linux-bluetooth@vger.kernel.org
Subject: Restart bluetooth on failure?
Date: Thu, 05 Feb 2015 17:09:44 +0100	[thread overview]
Message-ID: <54D395C8.607@ubuntu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Hey,

Is there any reason bluetoothd is not restarted on failure? I recently
hit a segfault in the service and it let the user client non-working,
looks like the service doesn't get restarted either by systemd nor dbus
activation

The attached patch uncomment the restart from the systemd service

Cheers,
Sebastien Bacher

[-- Attachment #2: 0001-restart-service-on-failure.patch --]
[-- Type: text/x-diff, Size: 670 bytes --]

>From b5f1ca81438f9072fa1928d1603d25f062210665 Mon Sep 17 00:00:00 2001
From: Sebastien Bacher <seb128@ubuntu.com>
Date: Thu, 5 Feb 2015 17:06:04 +0100
Subject: [PATCH] restart service on failure

---
 src/bluetooth.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
index 35e9457..36a8883 100644
--- a/src/bluetooth.service.in
+++ b/src/bluetooth.service.in
@@ -8,7 +8,7 @@ BusName=org.bluez
 ExecStart=@libexecdir@/bluetoothd
 NotifyAccess=main
 #WatchdogSec=10
-#Restart=on-failure
+Restart=on-failure
 CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
 LimitNPROC=1
 
-- 
2.1.4


                 reply	other threads:[~2015-02-05 16:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=54D395C8.607@ubuntu.com \
    --to=seb128@ubuntu.com \
    --cc=linux-bluetooth@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.