Wind River Support Network

HomeDefectsLIN7-6074
Fixed

LIN7-6074 : syslog-ng not started

Created: Apr 22, 2016    Updated: Sep 8, 2018
Resolved Date: May 5, 2016
Previous ID: CGP7-384
Found In Version: 7.0.0.14
Fix Version: 7.0.0.16
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

Description

After replacing rsyslog with syslog-ng via the --with-template=feature/syslog-ng configure argument, the syslog-ng service fails to start.

Steps to Reproduce

1.Configure a project with the following line:
$installdir/wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-bootimage=tar.bz2 --enable-kernel=cgl+features/kvm/qemu-kvm-enable.scc+cfg/virtio.scc+features/igb/igb.scc+cfg/fs/btrfs.scc+cfg/fs/ext4.scc --enable-rootfs=glibc-cgl --with-template=feature/wr-hp-support,feature/kvm,feature/target-toolchain,feature/debug-wb,feature/analysis,feature/code_coverage,feature/oprofile,feature/system-stats,feature/valgrind,feature/syslog-ng --with-package=gdb,gdbserver --enable-doc-pages=target --enable-parallel-pkgbuilds=7 --enable-jobs=7 --enable-unsupported-config=yes --enable-rm-oldimgs=yes --enable-reconfig --with-rcpl-version=0014

2. Run make all and make start-target 
3. The status of syslog-ng.service is:

root@qemu0:~# systemctl status syslog-ng
? syslog-ng.service - System Logger Daemon
   Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled)
   Active: activating (start) since Fri 2016-04-22 12:29:03 UTC; 1min 28s ago
     Docs: man:syslog-ng(8)
 Main PID: 1770 (syslog-ng)
   CGroup: /system.slice/syslog-ng.service
           +-1770 /usr/sbin/syslog-ng -F
	
4. Reboot.
The new status of syslog-ng is:

root@qemu0:~# systemctl status syslog-ng.service -l
? syslog-ng.service - System Logger Daemon
   Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled)
   Active: failed (Result: start-limit) since Fri 2016-04-22 12:37:33 UTC; 32s ago
     Docs: man:syslog-ng(8)
  Process: 636 ExecStart=/usr/sbin/syslog-ng -F (code=exited, status=2)
 Main PID: 636 (code=exited, status=2)

Apr 22 12:37:33 qemu0 systemd[1]: Unit syslog-ng.service entered failed state.
Apr 22 12:37:33 qemu0 systemd[1]: syslog-ng.service holdoff time over, scheduling restart.
Apr 22 12:37:33 qemu0 systemd[1]: Stopping System Logger Daemon...
Apr 22 12:37:33 qemu0 systemd[1]: Starting System Logger Daemon...
Apr 22 12:37:33 qemu0 systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start.
Apr 22 12:37:33 qemu0 systemd[1]: Failed to start System Logger Daemon.
Apr 22 12:37:33 qemu0 systemd[1]: Unit syslog-ng.service entered failed state.
root@qemu0:~# journalctl -xn
-- Logs begin at Fri 2016-04-22 12:36:03 UTC, end at Fri 2016-04-22 12:37:33 UTC
Apr 22 12:37:32 qemu0 systemd[1]: Starting System Logger Daemon...
-- Subject: Unit syslog-ng.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit syslog-ng.service has begun starting up.
Apr 22 12:37:33 qemu0 systemd[1]: syslog-ng.service: main process exited, code=e
Apr 22 12:37:33 qemu0 systemd[1]: Failed to start System Logger Daemon.
-- Subject: Unit syslog-ng.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit syslog-ng.service has failed.
-- 
-- The result is failed.
Apr 22 12:37:33 qemu0 systemd[1]: Unit syslog-ng.service entered failed state.
Apr 22 12:37:33 qemu0 systemd[1]: syslog-ng.service holdoff time over, schedulin
Apr 22 12:37:33 qemu0 systemd[1]: Stopping System Logger Daemon...
-- Subject: Unit syslog-ng.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 



The /var/log/syslog-ng/ directory which is created on the first boot is removed after the reboot, preventing the syslog-ng service from starting again. 

This is the content of the directory after the first boot:

root@qemu0:~# ls /var/run/syslog-ng/
syslog-ng.ctl  syslog-ng.persist  syslog-ng.pid
root@qemu0:~# cat /var/run/syslog-ng/syslog-ng.ctl 
cat: /var/run/syslog-ng/syslog-ng.ctl: No such device or address
root@qemu0:~# cat /var/run/syslog-ng/syslog-ng.persist 
SLP4root@qemu0:~# cat /var/run/syslog-ng/syslog-ng.pid     
1770

Other Downloads


Live chat
Online