xinetd

write script in xinetd.d

start xinetd:
/etc/rc.d/init.d/xinetd start

原文地址:https://www.cnblogs.com/greencolor/p/1942355.html