From f6a816b4303c4ab2d6829c748c014b064fe749db Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Sat, 7 Jan 2017 14:12:08 +0100 Subject: [PATCH] Fix shm_load script --- files/{etc_rc2_d_S01shm_load => etc_init_d_shm_load} | 10 ++++++++++ tasks/prepare.yml | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) rename files/{etc_rc2_d_S01shm_load => etc_init_d_shm_load} (51%) diff --git a/files/etc_rc2_d_S01shm_load b/files/etc_init_d_shm_load similarity index 51% rename from files/etc_rc2_d_S01shm_load rename to files/etc_init_d_shm_load index 651b8f1..32e53b1 100644 --- a/files/etc_rc2_d_S01shm_load +++ b/files/etc_init_d_shm_load @@ -1,4 +1,14 @@ #!/bin/sh + +### BEGIN INIT INFO +# Provides: shm_load +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 +# Default-Stop: +# Short-Description: Mount FS for Oracle +### END INIT INFO + case "$1" in start) mkdir -p /var/lock/subsys touch /var/lock/subsys/listener diff --git a/tasks/prepare.yml b/tasks/prepare.yml index a55e3b7..2c7a78a 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -63,12 +63,15 @@ command: mount -t tmpfs shmfs -o size=2048m /dev/shm - name: Oracle | copy shm load file - copy: src=etc_rc2_d_S01shm_load - dest=/etc/rc2.d/S01shm_load + copy: src=etc_init_d_shm_load + dest=/etc/init.d/shm_load owner=root group=root mode=755 +- name: Oracle | add shm load file to bootlist + command: update-rc.d shm_load defaults + - name: Oracle | unpack oracle command: dpkg --install /opt/oracle-xe_11.2.0-2_amd64.deb -- GitLab