"service already provided" message while running "chkconfig grpwise on"

  • 7003816
  • 08-Jul-2009
  • 30-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2) Linux
SUSE Linux Enterprise Server 10
Novell GroupWise 8

Situation

"chkconfig grpwise on" returns "service grpwise already provided"
Message "/sbin/insserv failed exit code 1" while running "chkconfig grpwise on"

Resolution

  1. Browse to /etc/init.d directory.
  2. Run the command "grep "Provides:" * | grep -i grpwise " to list all the files that provide the grpwise service.
  3. Move all other scripts/files to any temporary location that provide grpwise service except the file named grpwise .

Additional Information

Notes:
 
"chkconfig grpwise on " returns the following
insserv: script gwpoahps: service grpwise already provided!
insserv: script gwia: service grpwise already provided!
insserv: script gwmta: service grpwise already provided!
insserv: script gwwebaccs: service grpwise already provided!
/sbin/insserv failed exit code 1
 
More than one script in /etc/init.d reports that it provides grpwise.  The output of chkconfig grpwise lists the scripts that provides grpwise service. Running the following command would provide the same files:
grep "Provides:" * | grep -i grpwise

Only one script should provide the service.  In this case previous versions of GroupWise had init scripts for each piece but later versions just run grpwise and then the config file starts the different pieces.  Determine which script should be providing the service, grpwise in this case, and remove the other init scripts and run the chkconfig command again.