Uninstalling a UNIX or Linux Build Forge agent
Use the following instructions to uninstall the agent software from UNIX or Linux platforms.
Linux agents
To remove agent software that was installed using the rpm package:
- Find the agent software and list package names and versions:
rpm -qa | grep bfagent - Delete the agent software:
rpm -e bfagent-<version_number>
Solaris agents
To remove agent software that was installed using the pkgadd program, run the following command:
pkgrm BFAgentOther agents
For other platforms, the uninstall process is manual and varies by platform. Follow the instructions that apply to your platform and super server implementation.
Note: To
run most commands, you need root access and the /sbin and /usr/sbin
directories must be set in your current PATH environment variable.
- Remove the agent service daemon, bfagent. Use the instructions
for the super server implementation (inetd, xinetd, launchd, or SMF)
that applies to your platform.
Super server Procedure inetd, common on older UNIX systems - Edit the /etc/inetd.conf file and remove the line for the bfagent.
- Find the process ID for inetd.
ps -ef | grep [i]netdFor BSD-derived systems, such as FreeBSD, substitute
ps auwwwxforps -ef. - Read the updated inetd.conf and start inetd.
kill -HUP <PID>
xinetd, common on newer UNIX systems - To remove the agent service, run the following command:
rm /etc/xinetd.d/bfagent - Find the process ID for inetd.
ps -ef | grep [i]netdFor BSD-derived systems, such as FreeBSD, substitute
ps auwwwxforps -ef. - Read the updated inetd.conf and start inetd.
kill -HUP <PID>
launchd for OpenBSD systems - Run
launchctl. - Enter
stop com.ibm.rational.bfagent. - Enter the following command:
unload /Library/LaunchDaemons/com.ibm.rational.bfagent.plist - Enter
quit. - Run the following command:
rm Library/LaunchDaemons/com.ibm.rational.bfagent.plist
Solaris System Management Facility (SMF) for Solaris 10 - Run
inetadm -d network /bfagent/tcp - Run
svccfg delete -f network/bfagent/tcp
- Remove the agent service from the PAM interface.
- Edit /etc/pam.conf and remove all lines that begin with bfagent.
- Run
rm /etc/pam.d/bfagent
- Remove the protocol entry from the etc/services file.
Edit /etc/services and remove the line for bfagent.
- Remove the following files installed by the agent:
/etc/bfagent.conf /etc/bfagent.conf-example /usr/local/bin/bfagent /usr/local/bin/bfcrypt.dll