On RHEL 7 or CentOS 7, the systemctl or systemd command works fine. I know it won't work in RHEL 6 or CentOS 6. Can you tell me the alternative command for starting/stopping a service, for example:
systemctl start iptables.service?
In earlier versions of RHEL use the
service command as explained in the documentation here.
# service service_name start
Therefore, in your case:
# service iptables start
You can replace
List all services with:
# service --status-all
rhel 6 and centos 6 are using upstart, not systemd. SysV (service and chkconfig) is also still supported.
Check documentation of
initctl and files in /etc/init/