#!/bin/bash # # # Script to start and stop Ingres from system init scripts # # call with : # su - ingres -c "$II_SYSTEM/ingres/bin/start_stop $1" # # ================================================================ source /etc/default/ingres RETVAL=1 case "$1" in start) echo 'Starting Ingres' ingstart RETVAL=$? ;; stop) echo 'Stopping Ingres' ingstop -immediate RETVAL=$? ;; *) echo 'Inconnu ('$1')' RETVAL=1 ;; esac exit $RETVAL