<div dir="ltr">Just to add here: <div>Just before starting rsyslog I do a "systemctl --system daemon-reload ", as I need to update the change in unit file, which I made. Here are some more logs:</div><div><br></div><div><div>[ 167.635681] systemd[1]: Reloading.</div><div>[ 168.024463] systemd[1]: Stopping System Logging Service...</div><div>[ 168.050426] systemd[1]: Starting System Logging Service...</div><div>[ 168.072309] systemd[1]: Started System Logging Service.</div><div>[ 168.100264] systemd[1]: rsyslog.service: main process exited, code=exited, status=1/FAILURE</div><div>[ 168.100387] systemd[1]: Unit rsyslog.service entered failed state.</div><div>[ 168.100667] systemd[1]: Starting System Logging Service...</div><div>[ 168.116240] systemd[1]: Started System Logging Service.</div><div>[ 168.120085] systemd[1]: rsyslog.service: main process exited, code=exited, status=1/FAILURE</div><div>[ 168.147818] systemd[1]: Unit rsyslog.service entered failed state.</div><div>[ 168.148077] systemd[1]: Starting System Logging Service...</div><div>[ 168.164080] systemd[1]: Started System Logging Service.</div><div>[ 168.169355] systemd[1]: rsyslog.service: main process exited, code=exited, status=1/FAILURE</div><div>[ 168.188378] systemd[1]: Unit rsyslog.service entered failed state.</div><div>[ 168.188627] systemd[1]: Starting System Logging Service...</div><div>[ 168.199284] strata-dma: module installed</div><div>[ 168.204244] systemd[1]: Started System Logging Service.</div><div>[ 168.223473] systemd[1]: rsyslog.service: main process exited, code=exited, status=1/FAILURE</div><div>[ 168.239790] systemd[1]: Unit rsyslog.service entered failed state.</div><div>[ 168.240041] systemd[1]: Starting System Logging Service...</div><div>[ 168.264078] systemd[1]: Started System Logging Service.</div><div>[ 168.289038] systemd[1]: rsyslog.service: main process exited, code=exited, status=1/FAILURE</div><div>[ 168.303725] systemd[1]: Unit rsyslog.service entered failed state.</div><div>[ 168.303988] systemd[1]: Starting System Logging Service...</div><div>[ 168.304022] systemd[1]: rsyslog.service start request repeated too quickly, refusing to start.</div><div>[ 168.304096] systemd[1]: Unit syslog.socket entered failed state.</div><div>[ 168.304167] systemd[1]: Failed to start System Logging Service.</div></div><div><br></div><div>It just keeps on restarting and then eventually fails.</div><div><br></div><div>Thanks</div><div>Navneet</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 9:12 PM, Navneet Sinha <span dir="ltr"><<a href="mailto:nnavneetsinha1001@gmail.com" target="_blank">nnavneetsinha1001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px"><font face="monospace, monospace">I don't know whether this is the right place to talk about this.</font></div><div style="font-size:12.8px"><font face="monospace, monospace"><br></font></div><div style="font-size:12.8px"><font face="monospace, monospace">Here is my rsyslog.service file.</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> <font face="trebuchet ms, sans-serif"> <span style="background-color:rgb(238,238,238)">[Unit] Description=System Logging Service</span></font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> [Service]</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> EnvironmentFile=-/etc/sysconfig/rsyslog</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> ExecStart=/sbin/ip netns exec $NSNAME /sbin/rsyslogd -n</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> Sockets=syslog.socket</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> StandardOutput=null</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"><br></font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> [Install]</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> WantedBy=multi-user.target</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> Alias=syslog.service</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font face="monospace, monospace">Here is the environment file:</font></div><div style="font-size:12.8px"> </div><div style="font-size:12.8px"> <span style="background-color:rgb(238,238,238)"> <font face="trebuchet ms, sans-serif"> # NOTE NOTE NOTE NOTE NOTE</font></span></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> #</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # This file is AUTO-GENERATED based on the system's configuration.</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Any modifications you make to this file will be lost when the</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # system's configuration is changed, e.g. from the CLI.</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> #</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"><br></font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> SYSLOGD_OPTIONS=""</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> NSNAME="default"</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"><br></font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # End of auto-generated file</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font face="monospace, monospace">When, systemd tries to start this service during boot up of my machine.</font></div><div style="font-size:12.8px"><font face="monospace, monospace">I see following debug logs: </font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> <span style="background-color:rgb(238,238,238)"> <font face="trebuchet ms, sans-serif"> 'About to execute /sbin/ip netns exec $NSNAME /sbin/rsyslogd -n\n'</font></span></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Forked /sbin/ip as 2794\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'rsyslog.service changed dead -> running\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Job rsyslog.service/start finished, result=done\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Got D-Bus request: org.freedesktop.systemd1.Manager.GetUnit() on /org/freedesktop/systemd1\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Got D-Bus request: org.freedesktop.DBus.Properties.Get() on /org/freedesktop/systemd1/unit/rsyslog_2eservice\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Accepted connection on private bus.\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Accepted connection on private bus.\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Received SIGCHLD from PID 2794 (ip).\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Got SIGCHLD for process 2794 (ip)\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Child 2794 died (code=exited, status=1/FAILURE)\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Child 2794 belongs to rsyslog.service\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'rsyslog.service: main process exited, code=exited, status=1/FAILURE\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'rsyslog.service changed running -> failed\n'</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> 'Unit rsyslog.service entered failed state.\n'</font></div><div style="font-size:12.8px"><span style="background-color:rgb(238,238,238)"><br></span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font face="monospace, monospace"><b>**why it fails to start, why pid 2794 receives the SIGCHLD ?**</b></font></div><div style="font-size:12.8px"><font face="monospace, monospace"><b>Any ideas ? I am unable to think on what to check next.</b></font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">systemd version : systemd-201-2.fc18.9.i686</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">rsyslog version : rsyslog-7.2.6 </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font face="monospace, monospace">Before changing to systemd, I had rsyslog initscript in /etc/init.d/ to start up rsyslog during boot up. Just in case, someone wants to take a look at it. Here is the main part of the initscript, which I changed an made a systemd service</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> <font face="trebuchet ms, sans-serif"> <span style="background-color:rgb(238,238,238)">#!/bin/bash</span></font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # rsyslog Startup script for rsyslog.</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> #</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # chkconfig: 2345 12 88</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # description: Syslog is the facility by which many daemons use to log \</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # messages to various system log files. It is a good idea to always \</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # run rsyslog.</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> ### BEGIN INIT INFO</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Provides: $syslog</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Required-Start: $local_fs</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Required-Stop: $local_fs</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Default-Start: 2 3 4 5</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Default-Stop: 0 1 6</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Short-Description: Enhanced system logging and kernel message trapping daemons</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Description: Rsyslog is an enhanced multi-threaded syslogd supporting,</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # among others, MySQL, syslog/tcp, RFC 3195, permitted</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # sender lists, filtering on any message part, and fine</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # grain output format control.</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> ### END INIT INFO</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"><br></font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Source function library.</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> . /etc/init.d/functions</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> RETVAL=0</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> PIDFILE=/var/run/syslogd.pid</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> prog=rsyslog</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> exec=/sbin/rsyslogd</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> lockfile=/var/lock/subsys/$prog</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> # Source config</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> if [ -f /etc/sysconfig/$prog ] ; then</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> . /etc/sysconfig/$prog</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> fi</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> start() {</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> [ -x $exec ] || exit 5</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> umask 077</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> echo -n $"Starting system logger: "</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> sudo $NETNS_EXEC $exec -i "${PIDFILE}" $SYSLOGD_OPTIONS</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> RETVAL=$?</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> echo</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> [ $RETVAL -eq 0 ] && touch $lockfile</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> return $RETVAL</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> }</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> stop() {</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> echo -n $"Shutting down system logger: "</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> killproc -p "${PIDFILE}" $exec</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> RETVAL=$?</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> echo</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> [ $RETVAL -eq 0 ] && rm -f $lockfile</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> return $RETVAL</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> }</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> rhstatus() {</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> status -p "${PIDFILE}" $exec</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> }</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> restart() {</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> stop</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> start</font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif" style="background-color:rgb(238,238,238)"> } </font></div><div style="font-size:12.8px"><font face="trebuchet ms, sans-serif"><br></font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font face="monospace, monospace">Any help will be appreciated. Kindly, help.</font></div><div style="font-size:12.8px"><font face="monospace, monospace"><br></font></div><div style="font-size:12.8px"><font face="monospace, monospace">Thanks</font></div><div style="font-size:12.8px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div>
</blockquote></div><br></div>