马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?站点注册 
 
 
 
×
 
我跟据网上下的说明在/etc/rc.d/init.d/目录下加了一个脚本,并且chkconfig sybase on,还是不行. 脚本如下: (3)创建脚本文件sybase:             #!/bin/sh             #             # sybase:       Starts the available Servers             #             # Version:      @(#) /etc/rc.d/init.d/sybase 1.2             #             # chkconfig: 345 85 15             #             # description: This script will browse through the              /opt/sybase/install \             #              directory and launch all servers configured from this              location.             # Source function library.             . /etc/rc.d/init.d/functions             # SYBASE should point to the system administrated server area             #             # Check for the correct SYBASE release area below.             # The queryformat should provide the correct setting on the              installprefix.             # SYBASE=/opt/sybase-12.5             export SYBASE=/opt/sybase             if [ -n "${SYBASE}" -a -d "${SYBASE}" ]; then               SYBASE_ASE=`basename $SYBASE/ASE-12_5`               SYBASE_OCS=`basename $SYBASE/OCS-12_5`                            PATH="${SYBASE}/${SYBASE_ASE}/bin{SYBASE}/${SYBASE_OCS}{SYBASE}/${SYBASE_ASE}/install{PATH}"               export SYBASE SYBASE_ASE SYBASE_OCS PATH               # See how we were called.               case "$1" in                 start)                     echo -n "Starting Sybase ASE ... "                     ( cd ${SYBASE}/${SYBASE_ASE}/install ; \                       unset LANG ; unset LC_ALL ; \                       for run_server in RUN_* ; do \                           su -c "startserver -f ${run_server}" sybase >              /dev/null 2>&1 ; \                           echo -n "${run_server} " ; \                       done )                     echo                     touch /var/lock/subsys/sybase                     ;;                 stop)                     echo -n "Shuting down Sybase ASE configured servers: "                     killproc dataserver                     killproc backupserver                     killproc monserver                     # Add your own openserver applications.                     echo                     ;;                 status)                     showserver                     ;;                 restart)                     $0 stop                     $0 start                     ;;                 *)                     echo "*** Usage: sybase {start|stop|status|restart}"                     exit 1               esac             fi             exit 0             把sybase拷贝到/etc/init.d下,chkconfig sybase on, 不知道是不是脚本问题. 哪位高手能不能,指导一下?  |