Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    33

    Unanswered: Informix Stop before Server Shutdown

    Hi,

    what has to be done to stop the Informix Dynamic Server (9.3)
    automatically when the server (Debian 2.4.21) shuts down ?

    Thanks in advance
    ifx

  2. #2
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    780
    Hi,
    Please, create /etc/init.d/informix file, then create link on rc2.d, follow:
    ----------------------
    Linux siu 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686
    #! /bin/sh
    #
    . /informix/.informix ## Environment variables

    case "$1" in
    start)
    $INFORMIXDIR/bin/oninit
    ;;
    stop)
    $INFORMIXDIR/bin/onmode -ky 2>/dev/null
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    *)
    echo "Usage: /etc/init.d/informix {start|stop|restart}"
    exit 1
    ;;
    esac

    exit 0
    -------------------------------
    Gustavo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •