[CentOS] Centos 7 - iptables service failed to start

Stephen Harris lists at spuddy.org
Sun Aug 10 10:09:59 UTC 2014


On Sat, Aug 09, 2014 at 10:21:33PM -0500, Neil Aggarwal wrote:
> Hello all:
> 
> I did a fresh install of CentOS 7 on a new machine.
> 
> I wrote /usr/local/bin/firewall.stop to remove all the firewall rules.
> It contains this code:
> # Flush the rules
> /usr/sbin/iptables -F

You are missing a first line:
  #!/bin/sh

> Aug 10 06:09:38 jamm23.jammconsulting.com systemd[2268]: Failed at step EXEC
> spawning /usr/local/bin/firewall.start: Exec format error

And that's the error expected.

-- 

rgds
Stephen



More information about the CentOS mailing list