xinetd

Executing script on receiving incoming connection with xinetd

喜夏-厌秋 提交于 2019-11-29 08:13:35
I want xinetd to execute a shell script when a connection is received on a certain port. To accomplish this, followed this tutorial: [enter link description here][1] Unfortunately, the whole thing doesn't work as I hoped that's why I am going to show you my configuration. The script that is called by xinetd is located at /usr/local/bin. It can be executed without any problems: #!/bin/bash echo "connection received" /etc/xinetd.d/testservice has this content: service testservice { disable = no socket_type = stream protocol = tcp port = 5900 log_on_success += USERID log_on_failure += USERID

Kickstart实现自动安装centos6和7

前提是你 提交于 2019-11-28 20:26:57
一直想尝试下pxe自动安装centos6和centos7,最近几天做了下实验,虽然实践的过程中碰到许多问题,但收获还是有的,把碰到的问题和收获分享下。 pxe自动安装需要三个服务,分别为dhcp、tftp、nginx,这三个服务我都使用centos6.6安装了。其中nginx也可以使用apache等其它web服务器,也可以使用nfs服务器,由于本人对nginx比较熟悉,就用nginx了。centos6和7的下载地址为:http://archive.kernel.org/centos-vault/。 还是先看效果图,最终使用pxe自动安装cento6和centos7的截图如下: 服务器上的三个服务: centos6自动安装的截图: centos7自动安装的截图: 下面说下安装的过程: 1: nginx的安装就不说了,配置贴下,我是root到/var/www/html目录。 location / { root /var/www/html/; index index.html index.htm; } /var/www/html需要放置的kickstart的配置和centos的安装镜像包,如图,后面讲配置的话会有说明: 2: 安装dhcp服务器,直接使用yum install dhcp -y安装即可。dhcp的配置如下,dhcp上有个pxelinux.0需要等安装tftp的时候再说

Executing script on receiving incoming connection with xinetd

随声附和 提交于 2019-11-28 01:52:57
问题 I want xinetd to execute a shell script when a connection is received on a certain port. To accomplish this, followed this tutorial: [enter link description here][1] Unfortunately, the whole thing doesn't work as I hoped that's why I am going to show you my configuration. The script that is called by xinetd is located at /usr/local/bin. It can be executed without any problems: #!/bin/bash echo "connection received" /etc/xinetd.d/testservice has this content: service testservice { disable = no