From: Mark O. <sky...@us...> - 2001-04-13 16:48:57
|
Update of /cvsroot/firebird/interbase/firebird/skywalker/install/misc In directory usw-pr-cvs1:/tmp/cvs-serv4162 Modified Files: README Added Files: firebird.init.d.generic firebird.init.d.mandrake firebird.xinitd Log Message: Updated init files for redhat7.0 and mandrake7.2 Support now for xinetd --- NEW FILE --- #!/bin/sh # chkconfig: 345 20 80 # description: Start/Stop firebird database server # # This file belongs in /etc/init.d where it will be run # on system startup and shutdown to start the background # Firebird/interbase database server daemon : ${INTERBASE:=/opt/interbase} : ${ISC_USER:=SYSDBA} : ${ISC_PASSWORD:=masterkey} : ${FBRunUser:=root} # WARNING: in a real-world installation, you should not put the # SYSDBA password in a publicly-readable file. # Eventually this file should not need to contain any passwords. # as root user alone should be sufficient privledge to stop/start # the server. export INTERBASE export ISC_USER export ISC_PASSWORD # Check the file is there and is executable. [ -x $INTERBASE/bin/ibmgr ] || exit 0 # See how we were called. case "$1" in start) echo -n "Starting Firebird server: " echo '$INTERBASE/bin/ibmgr -start -forever' | su $FBRunUser RETVAL=$? ;; stop) echo -n "Stopping Firebird server: " $INTERBASE/bin/ibmgr -shut RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/identd ;; status) RETVAL=0 ;; restart|reload) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: firebird {start|stop|status|restart|reload}" exit 1 esac exit $RETVAL --- NEW FILE --- #!/bin/sh # chkconfig: 345 20 80 # description: Start/Stop firebird database server # # This file belongs in /etc/init.d where it will be run # on system startup and shutdown to start the background # Firebird/interbase database server daemon # This init script contains functions specific for redhat # and mandrake init scripts. # Source function library. . /etc/rc.d/init.d/functions : ${INTERBASE:=/opt/interbase} : ${ISC_USER:=SYSDBA} : ${ISC_PASSWORD:=masterkey} : ${FBRunUser:=root} # WARNING: in a real-world installation, you should not put the # SYSDBA password in a publicly-readable file. # Eventually this file should not need to contain any passwords. # as root user alone should be sufficient privledge to stop/start # the server. export INTERBASE export ISC_USER export ISC_PASSWORD # Check the file is there and is executable. [ -x $INTERBASE/bin/ibmgr ] || exit 0 # See how we were called. case "$1" in start) echo -n "Starting Firebird server: " daemon --user $FBRunUser $INTERBASE/bin/ibmgr -start -forever # echo '$INTERBASE/bin/ibmgr -start -forever' | su $FBRunUser RETVAL=$? ;; stop) echo -n "Stopping Firebird server: " $INTERBASE/bin/ibmgr -shut # killproc ibserver RETVAL=$? # echo # [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/identd ;; status) status ibserver RETVAL=$? ;; restart|reload) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: firebird {start|stop|status|restart|reload}" exit 1 esac exit $RETVAL --- NEW FILE --- # default: on # description: Interbase server service gds_db { flags = REUSE socket_type = stream wait = no user = root log_on_success += USERID log_on_failure += USERID server = /opt/interbase/bin/gds_inet_server disable = no } Index: README =================================================================== RCS file: /cvsroot/firebird/interbase/firebird/skywalker/install/misc/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** README 2000/10/22 10:32:05 1.1 --- README 2001/04/13 16:48:53 1.2 *************** *** 5,8 **** --- 5,9 ---- database engine from: http://firebird.sourceforge.net + http://sourceforge.net/projects/firebird or affiliated sites: |