* [PATCH 1/2] systemd: don't order against syslog.target
@ 2012-05-03 22:21 Tom Gundersen
2012-05-03 22:21 ` [PATCH 2/2] udev: remove udev activation of the blutooth daemon Tom Gundersen
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tom Gundersen @ 2012-05-03 22:21 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Tom Gundersen
This was only needed in old versions of systemd. All messages are logged
by default to the journal now, no ordering required.
Signed-off-by: Tom Gundersen <teg@jklm.no>
---
src/bluetooth.service.in | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
index 02b6707..8a9edb6 100644
--- a/src/bluetooth.service.in
+++ b/src/bluetooth.service.in
@@ -1,12 +1,10 @@
[Unit]
Description=Bluetooth service
-After=syslog.target
[Service]
Type=dbus
BusName=org.bluez
ExecStart=@prefix@/sbin/bluetoothd -n
-StandardOutput=syslog
[Install]
WantedBy=bluetooth.target
--
1.7.10.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] udev: remove udev activation of the blutooth daemon 2012-05-03 22:21 [PATCH 1/2] systemd: don't order against syslog.target Tom Gundersen @ 2012-05-03 22:21 ` Tom Gundersen 2012-05-04 20:54 ` [PATCH 1/2] systemd: don't order against syslog.target Lucas De Marchi 2012-05-08 20:18 ` Johan Hedberg 2 siblings, 0 replies; 5+ messages in thread From: Tom Gundersen @ 2012-05-03 22:21 UTC (permalink / raw) To: linux-bluetooth; +Cc: Tom Gundersen Udev is not meant to spawn long-running processes, and as of the next udev version such processes will be killed. If using systemd, device activation can be used to get the same effect. On Arch we have been disabling this rule for a long time, even though we don't use systemd, as it was causing more problems than it was worth. Signed-off-by: Tom Gundersen <teg@jklm.no> --- Makefile.am | 5 ++--- configure.ac | 3 +-- scripts/bluetooth.rules.in | 4 ---- 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 scripts/bluetooth.rules.in diff --git a/Makefile.am b/Makefile.am index 62705f6..44e82c0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -389,7 +389,7 @@ include Makefile.tools if DATAFILES rulesdir = @UDEV_DIR@/rules.d -udev_files = scripts/bluetooth.rules +udev_files = if HID2HCI udev_files += scripts/bluetooth-hid2hci.rules @@ -408,8 +408,7 @@ endif CLEANFILES += $(rules_DATA) -EXTRA_DIST += scripts/bluetooth.rules \ - scripts/bluetooth-hid2hci.rules scripts/bluetooth-serial.rules +EXTRA_DIST += scripts/bluetooth-hid2hci.rules scripts/bluetooth-serial.rules EXTRA_DIST += doc/manager-api.txt \ doc/adapter-api.txt doc/device-api.txt \ diff --git a/configure.ac b/configure.ac index f298909..44f33ad 100644 --- a/configure.ac +++ b/configure.ac @@ -71,5 +71,4 @@ if (test -n "${path_systemdunit}"); then fi AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}") -AC_OUTPUT(Makefile scripts/bluetooth.rules doc/version.xml - src/bluetoothd.8 src/bluetooth.service bluez.pc) +AC_OUTPUT(Makefile doc/version.xml src/bluetoothd.8 src/bluetooth.service bluez.pc) diff --git a/scripts/bluetooth.rules.in b/scripts/bluetooth.rules.in deleted file mode 100644 index 64df69d..0000000 --- a/scripts/bluetooth.rules.in +++ /dev/null @@ -1,4 +0,0 @@ -# Run helper every time a Bluetooth device appears -# On remove actions, bluetoothd should go away by itself -ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="@prefix@/sbin/bluetoothd --udev" -ACTION=="change", SUBSYSTEM=="bluetooth", RUN+="@prefix@/sbin/bluetoothd --udev" -- 1.7.10.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] systemd: don't order against syslog.target 2012-05-03 22:21 [PATCH 1/2] systemd: don't order against syslog.target Tom Gundersen 2012-05-03 22:21 ` [PATCH 2/2] udev: remove udev activation of the blutooth daemon Tom Gundersen @ 2012-05-04 20:54 ` Lucas De Marchi 2012-05-08 20:18 ` Johan Hedberg 2 siblings, 0 replies; 5+ messages in thread From: Lucas De Marchi @ 2012-05-04 20:54 UTC (permalink / raw) To: Tom Gundersen; +Cc: linux-bluetooth Hi Tom On Thu, May 3, 2012 at 7:21 PM, Tom Gundersen <teg@jklm.no> wrote: > This was only needed in old versions of systemd. All messages are logged > by default to the journal now, no ordering required. > > Signed-off-by: Tom Gundersen <teg@jklm.no> > --- > src/bluetooth.service.in | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in > index 02b6707..8a9edb6 100644 > --- a/src/bluetooth.service.in > +++ b/src/bluetooth.service.in > @@ -1,12 +1,10 @@ > [Unit] > Description=Bluetooth service > -After=syslog.target > > [Service] > Type=dbus > BusName=org.bluez > ExecStart=@prefix@/sbin/bluetoothd -n > -StandardOutput=syslog > > [Install] > WantedBy=bluetooth.target > -- > 1.7.10.1 Ack ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] systemd: don't order against syslog.target 2012-05-03 22:21 [PATCH 1/2] systemd: don't order against syslog.target Tom Gundersen 2012-05-03 22:21 ` [PATCH 2/2] udev: remove udev activation of the blutooth daemon Tom Gundersen 2012-05-04 20:54 ` [PATCH 1/2] systemd: don't order against syslog.target Lucas De Marchi @ 2012-05-08 20:18 ` Johan Hedberg 2012-05-08 20:31 ` Tom Gundersen 2 siblings, 1 reply; 5+ messages in thread From: Johan Hedberg @ 2012-05-08 20:18 UTC (permalink / raw) To: Tom Gundersen; +Cc: linux-bluetooth Hi Tom, On Fri, May 04, 2012, Tom Gundersen wrote: > This was only needed in old versions of systemd. All messages are logged > by default to the journal now, no ordering required. > > Signed-off-by: Tom Gundersen <teg@jklm.no> > --- > src/bluetooth.service.in | 2 -- > 1 file changed, 2 deletions(-) Both patches have been pushed upstream. Thanks. Btw, I had to remove the Signed-off-by stuff since we don't use that for user space patches. Johan ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] systemd: don't order against syslog.target 2012-05-08 20:18 ` Johan Hedberg @ 2012-05-08 20:31 ` Tom Gundersen 0 siblings, 0 replies; 5+ messages in thread From: Tom Gundersen @ 2012-05-08 20:31 UTC (permalink / raw) To: Tom Gundersen, linux-bluetooth On Tue, May 8, 2012 at 10:18 PM, Johan Hedberg <johan.hedberg@gmail.com> wrote: > Hi Tom, > > On Fri, May 04, 2012, Tom Gundersen wrote: >> This was only needed in old versions of systemd. All messages are logged >> by default to the journal now, no ordering required. >> >> Signed-off-by: Tom Gundersen <teg@jklm.no> >> --- >> src/bluetooth.service.in | 2 -- >> 1 file changed, 2 deletions(-) > > Both patches have been pushed upstream. Thanks. Cool. > Btw, I had to remove the Signed-off-by stuff since we don't use that for > user space patches. Ok, I'll keep that in mind for the future. Cheers, Tom ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-08 20:31 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-05-03 22:21 [PATCH 1/2] systemd: don't order against syslog.target Tom Gundersen 2012-05-03 22:21 ` [PATCH 2/2] udev: remove udev activation of the blutooth daemon Tom Gundersen 2012-05-04 20:54 ` [PATCH 1/2] systemd: don't order against syslog.target Lucas De Marchi 2012-05-08 20:18 ` Johan Hedberg 2012-05-08 20:31 ` Tom Gundersen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).