<div dir="ltr">Ok, let me add some more detail.<div>At the start, I have following ExecStart in my rsyslog.service</div><div><span style="color:rgb(80,0,80);font-size:12.8px">ExecStart=/sbin/rsyslogd -n</span><br style="color:rgb(80,0,80);font-size:12.8px"></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">then, somewhere during the boot up. I change this to </span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">ExecStart=/sbin/ip netns exec $NSNAME /sbin/rsyslogd -n ( using sed command )</span><br style="color:rgb(80,0,80);font-size:12.8px"></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">then, I do a "systemctl --system daemon-reload"</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">and then I restart rsyslog.service and I see start seeing those failure as mentioned in the logs given by me in the previous mails.</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">Thanks</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">Navneet</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 10:26 PM, Andrei Borzenkov <span dir="ltr"><<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">14.12.2015 18:42, Navneet Sinha пишет:<br>
<span class="">> I don't know whether this is the right place to talk about this.<br>
><br>
> Here is my rsyslog.service file.<br>
><br>
> [Unit] Description=System Logging Service<br>
><br>
> [Service]<br>
> EnvironmentFile=-/etc/sysconfig/rsyslog<br>
> ExecStart=/sbin/ip netns exec $NSNAME /sbin/rsyslogd -n<br>
<br>
</span>When I try to do it I get<br>
<br>
bor@bor-Latitude-E5450:~$ sudo ip netns exec foo /usr/sbin/rsyslogd -n<br>
Pidfile (and pid) already exist.<br>
<div><div class="h5"><br>
<br>
> Sockets=syslog.socket<br>
> StandardOutput=null<br>
><br>
> [Install]<br>
> WantedBy=multi-user.target<br>
> Alias=syslog.service<br>
><br>
> Here is the environment file:<br>
><br>
> # NOTE NOTE NOTE NOTE NOTE<br>
> #<br>
> # This file is AUTO-GENERATED based on the system's configuration.<br>
> # Any modifications you make to this file will be lost when the<br>
> # system's configuration is changed, e.g. from the CLI.<br>
> #<br>
><br>
> SYSLOGD_OPTIONS=""<br>
> NSNAME="default"<br>
><br>
> # End of auto-generated file<br>
><br>
> When, systemd tries to start this service during boot up of my machine.<br>
> I see following debug logs:<br>
><br>
> 'About to execute /sbin/ip netns exec $NSNAME /sbin/rsyslogd -n\n'<br>
> 'Forked /sbin/ip as 2794\n'<br>
> 'rsyslog.service changed dead -> running\n'<br>
> 'Job rsyslog.service/start finished, result=done\n'<br>
> 'Got D-Bus request: org.freedesktop.systemd1.Manager.GetUnit() on<br>
> /org/freedesktop/systemd1\n'<br>
> 'Got D-Bus request: org.freedesktop.DBus.Properties.Get() on<br>
> /org/freedesktop/systemd1/unit/rsyslog_2eservice\n'<br>
> 'Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on<br>
> /org/freedesktop/DBus/Local\n'<br>
> 'Accepted connection on private bus.\n'<br>
> 'Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on<br>
> /org/freedesktop/systemd1/agent\n'<br>
> 'Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on<br>
> /org/freedesktop/DBus/Local\n'<br>
> 'Accepted connection on private bus.\n'<br>
> 'Received SIGCHLD from PID 2794 (ip).\n'<br>
> 'Got SIGCHLD for process 2794 (ip)\n'<br>
> 'Child 2794 died (code=exited, status=1/FAILURE)\n'<br>
> 'Child 2794 belongs to rsyslog.service\n'<br>
> 'rsyslog.service: main process exited, code=exited, status=1/FAILURE\n'<br>
> 'rsyslog.service changed running -> failed\n'<br>
> 'Unit rsyslog.service entered failed state.\n'<br>
><br>
><br>
</div></div>> ***why it fails to start, why pid 2794 receives the SIGCHLD ?***<br>
> *Any ideas ? I am unable to think on what to check next.*<br>
<div><div class="h5">><br>
> systemd version : systemd-201-2.fc18.9.i686<br>
><br>
> rsyslog version : rsyslog-7.2.6<br>
><br>
> Before changing to systemd, I had rsyslog initscript in /etc/init.d/ to<br>
> start up rsyslog during boot up. Just in case, someone wants to take a look<br>
> at it. Here is the main part of the initscript, which I changed an made a<br>
> systemd service<br>
><br>
> #!/bin/bash<br>
> #<br>
> # rsyslog Startup script for rsyslog.<br>
> #<br>
> # chkconfig: 2345 12 88<br>
> # description: Syslog is the facility by which many daemons use to log \<br>
> # messages to various system log files. It is a good idea to always \<br>
> # run rsyslog.<br>
> ### BEGIN INIT INFO<br>
> # Provides: $syslog<br>
> # Required-Start: $local_fs<br>
> # Required-Stop: $local_fs<br>
> # Default-Start: 2 3 4 5<br>
> # Default-Stop: 0 1 6<br>
> # Short-Description: Enhanced system logging and kernel message<br>
> trapping daemons<br>
> # Description: Rsyslog is an enhanced multi-threaded syslogd supporting,<br>
> # among others, MySQL, syslog/tcp, RFC 3195, permitted<br>
> # sender lists, filtering on any message part, and fine<br>
> # grain output format control.<br>
> ### END INIT INFO<br>
><br>
><br>
> # Source function library.<br>
> . /etc/init.d/functions<br>
><br>
> RETVAL=0<br>
> PIDFILE=/var/run/syslogd.pid<br>
><br>
> prog=rsyslog<br>
> exec=/sbin/rsyslogd<br>
> lockfile=/var/lock/subsys/$prog<br>
><br>
> # Source config<br>
> if [ -f /etc/sysconfig/$prog ] ; then<br>
> . /etc/sysconfig/$prog<br>
> fi<br>
><br>
> start() {<br>
> [ -x $exec ] || exit 5<br>
><br>
> umask 077<br>
><br>
> echo -n $"Starting system logger: "<br>
> sudo $NETNS_EXEC $exec -i "${PIDFILE}" $SYSLOGD_OPTIONS<br>
> RETVAL=$?<br>
> echo<br>
> [ $RETVAL -eq 0 ] && touch $lockfile<br>
> return $RETVAL<br>
> }<br>
> stop() {<br>
> echo -n $"Shutting down system logger: "<br>
> killproc -p "${PIDFILE}" $exec<br>
> RETVAL=$?<br>
> echo<br>
> [ $RETVAL -eq 0 ] && rm -f $lockfile<br>
> return $RETVAL<br>
> }<br>
> rhstatus() {<br>
> status -p "${PIDFILE}" $exec<br>
> }<br>
> restart() {<br>
> stop<br>
> start<br>
> }<br>
><br>
><br>
> Any help will be appreciated. Kindly, help.<br>
><br>
> Thanks<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
<br>
</blockquote></div><br></div>