Environment
Novell GroupWise 7
Novell GroupWise 8
SUSE Linux Enterprise Server 10
Novell Open Enterprise Server 2 (OES 2) Linux
Situation
GroupWise agent status on linux is shown as unused even though agent is running in the background as a process.
"rcgrpwise status" displays status as unused
"rcgrpwise start" command starts the agents but shows status as unused
unable to stop the agents with "rcgrpwise stop" command
Resolution
Cause:
The agent object name is not in the proper format in the gwha.conf and because of which grpwise script is not being able to create the temporary pid file for the agent in /var/run/novell/groupwise directory
Corrective Steps:
1. Make sure that the agent startup file mentioned in /etc/opt/novell/groupwise/gwha.conf is in the correct case. Agent startup files can be found in /opt/novell/groupwise/agents/share directory (without cluster) or in the shared partition/volume (with cluster)
2. Find out the process id (PID) for the agent running in the background by typing the following command on the terminal
ps -eaf |grep gwmta | grep -v grep
ps -eaf |grep gwpoa | grep -v grep
ps -eaf |grep gwia | grep -v grep
ps -eaf |grep gwinter | grep -v grep
Shut down the agent which is running in the background by typing the "kill -9 xxxx " without quotes and press enter (where xxxx stands for the PID of the process)
3. Edit the gwha.conf file by entering the following command on the terminal
vi /etc/opt/novell/groupwise/gwha.conf
Replace the agent object name given the square bracket with the @agent_startup_file. Save and exit out of the file.
For example:
The post office object entry should look like this in the gwha.conf file
[po.domain]
server = /opt/novell/groupwise/agents/bin/gwpoa
command = /etc/init.d/grpwise
startup = po.poa
delay = 2
wait = 10
replace po.domain with @po.poa where po.poa is the poa startup file and should look like this after changes
[@po.poa]
server = /opt/novell/groupwise/agents/bin/gwpoa
command = /etc/init.d/grpwise
startup = po.poa
delay = 2
wait = 10
(make sure to replace the po.poa with the actual agent startup file)
Once the above changes are done, start the agent with "rcgrpwise start "
The above steps ensure that the script will re-read the configuration from the startup file and put the correct object name in the gwha.conf file
Additional Information
Notes:
Check out the following TID - 3740936 for more information on the similar issue and proper format of gwha.conf