最近我安装了:Debian x86_64,oracle 11g和OCI8。 我想将下面的shell脚本自动打开,但我收到以下消息错误:
root @ debian:/etc/init.d# uname -a Linux 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 defaults update-rc.d:使用依赖的启动顺序insserv:脚本oracle-shm坏了:不完整的LSB注释。 insserv:缺less“提供”的有效名称,请添加。
看看我的configuration文件,它有必要的评论,你可以看到下面。
#! /bin/sh case "$1" in start) 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
你能指导我解决吗? 非常感谢! 马科斯