Difference between revisions of "Centos7"

From DXSpider Documentation Wiki
Jump to: navigation, search
(Inital notes for centos7)
(No difference)

Revision as of 11:49, 18 July 2014

Centos7 makes some big changes to both the init system and to the firewall

centos7 systemd system file

a basic service file for systemd

create a file


With the following contents

Description= Dxspider DXCluster service

ExecStart= /usr/bin/perl -w /spider/perl/cluster.pl
# Comment out line below for logging everything to /var/log/messages



to start up dxspider 
#service dxspider start
to stop
#service dxspider stop

to set up to start on boot 
#systemctl enable dxspider

The firewall, centos7 has moved to using firewalld to manage the firewall settings, I am not sure how I feel about this! The old way can be installed

#yum remove firewalld
#yum install iptables-service 

systemctl enable iptables

Then you have the traditional iptables way of doing things

However if one wishes to use the 'new way' with firewalld

first create


with the contents (change port number to suit your own needs)

  <description>Dxspider dxcluster service on tcp port 7300</description>
  <port protocol="tcp" port="7300"/>

then issue the following commands as root

#firewall-cmd --reload 
#firewall-cmd --permanent --zone=public --add-service=dxspider
#firewall-cmd --reload