Ubuntu – /etc/init.d/rsyslog {start | stop | restart} : Need this to work


I have read the answer/comments for the thread
Diffrence between /etc/init.d/ssh start and service ssh start.

But I need this /etc/init.d method to be working. I have some auto-generated scripts which invoke /etc/init.d method only. Could you kindly provide me some fix/workaround for this?

Best Answer

The last answer is a way to solve the defense4all installation problem about "Failed to start rsyslog service".This problem is caused by the bug of rsyslog (maybe, I found on the other webs), you can use service rsyslog instead of /etc/init.d/rsyslog, so you can edit the file in defense4all code files to solve this problem.

In the file:


change the last sentences:

/etc/init.d/rsyslog stop > /dev/null 


service rsyslog stop


/etc/init.d/rsyslog stop > /dev/null   


service rsyslog start

And then rebuild the project to create .deb or .rpm files.Hope this may help you.