start hangs on my machines also, but if I do Ctrl+C with the original init
script, rsyslog continues to work correctly.

I had to use the "start hack" I described on all el5 machines because I'm
fairly certain that a reboot will leave most of them unreachable, hanging
on rsyslog start,

Best regards,
Cristian Falcas



On Wed, Aug 6, 2014 at 12:31 PM, AndyL <[email protected]> wrote:

>
> >I don't know who to blame for this exactly (killproc and daemon from
> > /etc/init.d/functions or rsyslog only), but also stop fails sometimes and
> > a
> > restart left me with this :
>
> I think the fact that I can successfully stop and start any service on any
> version of CentOS except rsyslog gives us a fair indication of where the
> problem lies.
>
> > How I fixed it here:
> >I replace the daemon call from the init script with this:
>
> >       (kill -0 $(cat "${PIDFILE}")) &> /dev/null || $exec -i "${PIDFILE}"
> > $SYSLOGD_OPTIONS &lt;/dev/null &amp;&gt;/dev/null &
> >        sleep 2
> >        kill -0 $(cat "${PIDFILE}")
>
> > but because the process never forks, I get 2 instances (child and
> parent),
> > but everything seems to work correctly
>
> I too get two processes but the 'service rsyslog start' command still
> hangs.
>
> Cheers
>
> Andy
>
>
>
>
> --
> View this message in context:
> http://rsyslog-users.1305293.n2.nabble.com/rsyslog-startup-problem-on-Cent-OS-5-tp7586023p7586073.html
> Sent from the rsyslog-users mailing list archive at Nabble.com.
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to