Explorar el Código

init: disable stderr output in systemd unit file

Usually both syslog and stderr are enabled so log entries are duplicated
in journal. Solution is to use similar patch as corosync
c34208ad402b45f52b5d3ee8d2a08df0779ec9aa and disable stderr.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse hace 7 años
padre
commit
91e31375b5
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      init/corosync-qdevice.service.in
  2. 1 0
      init/corosync-qnetd.service.in

+ 1 - 0
init/corosync-qdevice.service.in

@@ -9,6 +9,7 @@ After=corosync.service
 EnvironmentFile=-@INITCONFIGDIR@/corosync-qdevice
 ExecStart=@SBINDIR@/corosync-qdevice -f $COROSYNC_QDEVICE_OPTIONS
 Type=notify
+StandardError=null
 Restart=on-abnormal
 RuntimeDirectory=corosync-qdevice
 RuntimeDirectoryMode=0770

+ 1 - 0
init/corosync-qnetd.service.in

@@ -9,6 +9,7 @@ After=network-online.target
 EnvironmentFile=-@INITCONFIGDIR@/corosync-qnetd
 ExecStart=@BINDIR@/corosync-qnetd -f $COROSYNC_QNETD_OPTIONS
 Type=notify
+StandardError=null
 Restart=on-abnormal
 # Uncomment and set user who should be used for executing qnetd
 #User=coroqnetd