In init.d script the subsys name is defined as $procs but init.d script is called rsyslog and procs is defined as rsyslogd.<br />
<br />
So /etc/rc.d/rc will never stop rsyslog because it searchs for /etc/init.d/rsyslogd to stop which is not present.<br />
<br />
Please either rename /etc/init.d/rsyslog to /etc/init.d/rsyslogd or set the correct value in "$lockfile" to lockfile=/var/lock/subsys/rsyslog<br />
<br />
If attached my modified init.d script which stops rsyslog when entering new runlevel.
↧