systemd: prevent duplicate logging messages in journal
authorMarti Raudsepp <marti@juffo.org>
Thu, 25 Oct 2012 18:37:30 +0000 (21:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Oct 2012 23:28:38 +0000 (16:28 -0700)
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
src/ofono.service.in

index c57c618..82c5ef1 100644 (file)
@@ -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
index f4531a8..c24ac28 100644 (file)
@@ -6,6 +6,7 @@ After=syslog.target
 Type=dbus
 BusName=org.ofono
 ExecStart=@prefix@/sbin/ofonod -n
+StandardError=null
 
 [Install]
 WantedBy=multi-user.target