万卷书   首页 > 电脑书籍 > Linux >Wrapper和xinetd的实现(三)
 
4. RPC类服务例子

【范例4】/etc/xinetd.d/rstatd

service rstatd

{

       type              = RPC

       socket_type  = dgram

       protocol = udp

       server    = /usr/etc/rpc.rstatd

       wait        = yes

       user              = root

       rpc_version   = 2-4

       env =LD_LIBRARY_PATH=/etc/securelib

}


5. 自定义的服务配置范例

【范例4】/etc/xinetd.d/sample

service sample

{

       type              = UNLISTED

       socket_type  = stream

       protocol = tcp

       server    = /usr/bin/sample

       port        =20020

}


上一页 下一页