preuninstall.txt

来自「firebird源代码」· 文本 代码 · 共 50 行

TXT
50
字号
#! /bin/sh#------------------------------------------------------------------------#  stop server if it is runningstopServerIfRunning() {# Check is server is being actively used.    checkString=`ps -ef| egrep "(gds_inet_server|gds_pipe)" |grep -v grep`    if [ ! -z "$checkString" ]      then        echo "An instance of the Firebird/InterBase server seems to be running."        echo "Please quit all interbase applications and then proceed."        exit 1    fi# Stop lock manager if it is the only thing running.    for i in `ps -ef | grep "gds_lock_mgr" | grep -v "grep" | cut -d' ' -f3`     do        kill $i     done}#= Main PreUn ================================================================    IBRootDir=/opt/interbase    IBBin=$IBRootDir/bin    stopServerIfRunning    cd $IBRootDir    if [ -f isc4.gdb ]       then         cp isc4.gdb /tmp         echo "Saved a copy of isc4.gdb in /tmp"     fi             for i in isc_init1* isc_event1* isc_lock1* isc_guard* interbase.log      do        if [ -f $i ]          then            rm -f $i        fi      done

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?