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:
../defense4all/dfapp.aggregate/src/install/config_rsyslog.bash
change the last sentences:
/etc/init.d/rsyslog stop > /dev/null
to:
service rsyslog stop
and:
/etc/init.d/rsyslog stop > /dev/null
to:
service rsyslog start
And then rebuild the project to create .deb or .rpm files.Hope this may help you.
/etc/init.dwill still work if everything is in place. Also note thatserviceis a good option in the sense that it will first look in/etc/initand then/etc/init.dfor the script so if a script is only in/etc/init.dthenservicewill do the same as/etc/init.d/script start|stop|restart..what is your goal ? – heemayl Sep 16 '15 at 12:06/etc/init.dwould contain some logic that would skip it if the init is upstart/systemd..if the script is only in /etc/init.d then it would work as expected.. – heemayl Sep 16 '15 at 12:13/etc/init.d....also while responding to someone's comment please use "@name" e.g. @heemayl – heemayl Sep 16 '15 at 13:01#! /bin/shif [ "$1" = "status" ]then service rsyslog statuselif [ "$1" = "start" ]then service rsyslog startelif [ "$1" = "stop" ]then service rsyslog stopfi– Sanjib Sep 18 '15 at 08:38