在 UNIX 和 Linux 上运行代理程序

代理程序将作为服务来运行,并且在系统重新启动时需要自动重新启动。

相应地将 bfagent 条目添加到 inetd 或 xinetd 的配置中。以下示例是 Linux 系统上 xinetd.d 中的 bfagent 条目,其中代理程序安装在 /usr/local/bin 中:
# description: The IBM Rational Build Forge Agent serves build requests
#    from the IBM Rational Build Forge Management Console.
service bfagent
{
        disable         = no
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/local/bin/bfagent
        log_on_failure  += USERID
}
如有必要,代理程序可以在 inetd/xinetd 环境外部运行。要将其作为独立守护程序运行,请使用 -s 选项。
bfagent -s

使用该选项时,代理程序会转到后台并开始侦听连接。将此命令放在启动脚本中,这样代理程序会在计算机启动时自动启动。


反馈