Exalogic : Init Script Failed To Shutdown Service Due To Missing Subsystem Lock File In Directory /var/lock/subsys/ (Doc ID 2241610.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Exalogic Elastic Cloud Software - Version 1.0.0.0.0 to 2.0.6.2.170117
Linux x86-64
Oracle Virtual Server x86-64

Symptoms

When creating a user-defined script and putting it to system service start and stop.

It is successfully activated in start service but it never launches stopping script when OS is shutting down.

Here is the procedure to make an init script running as system service and the sample script.

  1. Create a named test script
  2. Put this script to directory /etc/init.d/ and make script executable (chmod u+x)
  3. Make script run as system service.
[root@el01cn12 ~]# chkconfig test on
[root@el01cn12 ~]#
[root@el01cn12 ~]# chkconfig --list | grep test
test 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@el01cn12 ~]#
[root@el01cn12 ~]# ls -l /etc/rc.d/rc?.d/*test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc0.d/K20test -> ../init.d/test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc1.d/K20test -> ../init.d/test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc2.d/S90test -> ../init.d/test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc3.d/S90test -> ../init.d/test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc4.d/S90test -> ../init.d/test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc5.d/S90test -> ../init.d/test
lrwxrwxrwx. 1 root root 14 Jan 30 18:28 /etc/rc.d/rc6.d/K20test -> ../init.d/test

Sample script:

Changes

NO Change

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms