I am using CentOS 6.6. I put this content into /etc/init.d/suricata. I also ran
sudo chkconfig suricata on
to make suricata run at boot. My problem is that it is now preventing Centos from booting up. The log ends with three lines all saying
sd 2:0:0:0 [sdb] Assuming drive cache: write through
I tried the Centos rescue disk and managed to get into the command line but /etc.init.d was unpopulated. It appears that it becomes populated later on and the suricata script prevents CentOS from booting up.
Is there a way for me to get rid of /etc/init.d/suricata so CentOS can boot up? In Debian, one can use ctrl-alt-F4 to get to the command line but that is not working in CentOS. It may depend on the reason for the hang.