All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] systemd: prevent duplicate logging messages in journal
@ 2012-10-25 18:37 Marti Raudsepp
  2012-10-25 23:29 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Marti Raudsepp @ 2012-10-25 18:37 UTC (permalink / raw)
  To: ofono

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

By default, both stderr and syslog messages go to the systemd journal,
which results in duplicate messages being logged.

Thanks to Vinicius Costa Gomes for pointing out this problem.
---
 dundee/dundee.service.in | 1 +
 src/ofono.service.in     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/dundee/dundee.service.in b/dundee/dundee.service.in
index c57c618..82c5ef1 100644
--- a/dundee/dundee.service.in
+++ b/dundee/dundee.service.in
@@ -6,6 +6,7 @@ After=syslog.target
 Type=dbus
 BusName=org.ofono.dundee
 ExecStart=@prefix@/sbin/dundee -n
+StandardError=null
 
 [Install]
 WantedBy=multi-user.target
diff --git a/src/ofono.service.in b/src/ofono.service.in
index f4531a8..c24ac28 100644
--- a/src/ofono.service.in
+++ b/src/ofono.service.in
@@ -6,6 +6,7 @@ After=syslog.target
 Type=dbus
 BusName=org.ofono
 ExecStart=@prefix@/sbin/ofonod -n
+StandardError=null
 
 [Install]
 WantedBy=multi-user.target
-- 
1.8.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] systemd: prevent duplicate logging messages in journal
@ 2012-10-10 15:59 Marti Raudsepp
  2012-10-25  2:12 ` Vinicius Costa Gomes
  2012-10-25 23:30 ` Marcel Holtmann
  0 siblings, 2 replies; 5+ messages in thread
From: Marti Raudsepp @ 2012-10-10 15:59 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marti Raudsepp

By default, both stdout and syslog messages go to the systemd journal,
which results in duplicate messages being logged.
---
 src/bluetooth.service.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bluetooth.service.in b/src/bluetooth.service.in
index 2a576a3..a8442a9 100644
--- a/src/bluetooth.service.in
+++ b/src/bluetooth.service.in
@@ -5,6 +5,7 @@ Description=Bluetooth service
 Type=dbus
 BusName=org.bluez
 ExecStart=@prefix@/sbin/bluetoothd -n
+StandardOutput=null
 
 [Install]
 WantedBy=bluetooth.target
-- 
1.7.12.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-25 23:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 18:37 [PATCH] systemd: prevent duplicate logging messages in journal Marti Raudsepp
2012-10-25 23:29 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2012-10-10 15:59 Marti Raudsepp
2012-10-25  2:12 ` Vinicius Costa Gomes
2012-10-25 23:30 ` Marcel Holtmann

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.