My Oracle Support Banner

API Gateway "managedomain" Cannot Create an init.d Script (Doc ID 1581940.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.


In OAG and OAG on either Linux or Solaris, managedomain option cannot create an /etc/init.d script.

Example error message which identifies this problem:

No such file or directory:


Example complete output:

lab/OAG- # ./managedomain
  Manage Domain Menu
  10) Add init.d script for existing local Gateway Server

Select option: 10

Select Gateway Server instance:
  1) Gateway1 (Group1)
  2) Enter Gateway Server name and group
Enter selection from 1-2 [2]: 1
Enter user to run service: root

Creating system service for 'Gateway1' in group 'Group1'...
Traceback (most recent call last):
 File "/lab/OAG-", line 1485, in
  manageDomainUtil.createSystemServiceForGatewayInstance(group, name, runAsUser)
 File "/lab/OAG-", line 1485, in
  manageDomainUtil.createSystemServiceForGatewayInstance(group, name, runAsUser)
 File "/lab/OAG-", line 772, in createSystemServiceForGatewayInstance
  self.createSystemService(service.getId(), group.getId(), name, groupName, runAsUser)
 File "/lab/OAG-", line 782, in createSystemService
 File "/lab/OAG-", line 533, in createSystemServiceOnly 
  self.addService(distDir, instDir, isNodeManager)
 File "/lab/OAG-", line 460, in addService
  self.addLinuxService(distDir, instDir, isNodeManager)
 File "/lab/OAG-", line 496, in addLinuxService
  skel_initd_script = open("%s/posix/samples/etc/init.d/enterprisegateway" %distDir).readlines()
IOError: [Errno 2] No such file or directory:



The problem is resolved in version


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.