recently I installed: Debian x86_64, oracle 11g and OCI8. I'd like to turn automatic the shell script below, but I received the following message error:
root@debian:/etc/init.d# uname -aLinux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
root@debian:/etc/init.d# update-rc.d oracle-shm defaultsupdate-rc.d: using dependency based boot sequencinginsserv: Script oracle-shm is broken: incomplete LSB comment.insserv: missing valid name for `Provides:' please add.
Looking my configuration file it has the comment necessary, as you can see below.
#! /bin/shcase "$1" instart) echo "Starting script /etc/init.d/oracle-shm" # Run only once at system startup rm -rf /dev/shm mkdir /dev/shm mount -t tmpfs shmfs -o size=2048m /dev/shm touch /dev/shm/.oracle-shm ;;stop) echo "Stopping script /etc/init.d/oracle-shm" echo "Nothing to do" ;;*) echo "Usage: /etc/init.d/oracle-shm {start|stop}" exit 1 ;;esac#### BEGIN INIT INFO# Provides: oracle-shm# Required-Start: $remote_fs $syslog# Required-Stop: $remote_fs $syslog# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-Description: Bind /run/shm to /dev/shm at system startup.# Description: Fix to allow Oracle 11g use AMM.### END INIT
Could you please guide me to solve it? Thanks a lot! Marcos