|
From: Tony C. <ac...@am...> - 2003-10-05 07:32:40
|
Gentoo Linux is rapidly becoming one of the most popular distro's according to distrowatch.com. I have FB 1.5 CS installs on Gentoo that have been running since Feb of 2003 without a reboot. more info on gento RC scripts can be seen here: http://www.gentoo.org/doc/en/rc-scripts.xml Anyway I created a simple start/stop rc script that works with Gentoo and was hoping it could be included in the FB 1.5 Linux SS distro in the misc directory: #!/sbin/runscript #Gentoo Linux RC script # 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 # Source function library. . /etc/init.d/functions.sh : ${FIREBIRD:=/usr/local/firebird} : ${ISC_USER:=SYSDBA} : ${ISC_PASSWORD:=coutweha} : ${FBRunUser:=firebird} # 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. # NOTE: make sure you have localhost in your hosts.equiv file see next 2 # lines for example of hosts.equiv contents #localhost.localdomain #localhost export FIREBIRD export ISC_USER export ISC_PASSWORD MANAGER=$FIREBIRD/bin/fbmgr.bin start(){ echo -n "Starting Firebird server: " $MANAGER -start -forever } stop(){ echo -n "Stopping Firebird server: " $MANAGER -shut } |