Ver código fonte

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 7 anos atrás
pai
commit
91e31375b5

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

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

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

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