From: <dia...@us...> - 2003-10-25 02:57:07
|
Update of /cvsroot/genericircd/gircd2.0 In directory sc8-pr-cvs1:/tmp/cvs-serv30709 Added Files: installer.bsd restircd.sh Removed Files: CREDITS ChangeLog FEATURES INSTALL LICENSE Makefile config.h config.status stamp-h Log Message: Added/removed some files, everything should be right now ... --- NEW FILE: installer.bsd --- # Installer for gircd2.0 *BSD ONLY!! # This installer was created for the GenericNet IRCd, and should only be used # for it. It will only work with it, so I suggest you not try it with any # other daemon. If you want to modify it to use it on another IRCd, please # contact us first. # # Script was successfully tested on Gentoo 1.4 # Please email me (dia...@ge...) if you have major problems. # or (is...@ge...) # This software is under GNU General Public License, so the appropriate # license agreements apply. See doc/LICENSE for the full license. # # This script will NOT check for ircd.conf and ircd.motd # You will need to use the templated from the doc dir and edit them. # # GenericNet IRC Network ircd configuration/compilation file. # Created by Ishtar & StoneC0ld # Adapted by Diaboliq to suit 2.0 needs # Last updated 2003-09-13 clear echo echo \ \----------------------------------------------------------- echo \/ Welcome to the GenericNet Configuration\/Compilation Script \\ echo \\ \ \ \ \ \ \ \ \ \ \ \ \ \ Created by StoneC0ld and Ishtar \ \ \ \ \ \ \ \ \ \ \ \ \ \/ echo \ \----------------------------------------------------------- echo echo echo This script is GPL. See doc/LICENSE for full license. echo echo THIS SCRIPT SHOULD BE USED FOR FREEBSD. echo DO NOT USE THE INSTALLER FOR BSD SYSTEMS! echo echo The script will install the ircd in /yourhomedir/ircd echo Edit installer.bsd and change INSTALLDIR= to the dir you want it in. sleep 5 # Change this to the dir you want it installed in. # The default is /yourhomedir/ircd INSTALLDIR=$HOME/ircd # Install the ircd (note that I changed GenericNet.Org to .GenericNet.Org # This is only for statistic purposes, so just ignore it). # Whatever you do, *DO NOT* change the following lines. gmake distclean ./configure --prefix=$INSTALLDIR \ --exec-prefix=$INSTALLDIR \ --with-domain=.GenericNet.Org \ --with-dpath=$INSTALLDIR && gmake && gmake install # Installation complete echo echo And voila, your ircd is now installed. echo You will need to copy ircd.conf and MOTD's from echo the gircd2.0/doc directory to your install directory. echo echo echo Suggestions/comments about this script echo should be sent to StoneC0ld\@GenericNet.Org echo and/or Ishtar\@GenericNet.Org echo -------------------------------------------------------------------------------- echo echo --- NEW FILE: restircd.sh --- ircd_running () { if test -r $pidfile then ircupid=`cat $pidfile` runcnt=`ps x|grep ircd|grep $ircupid|grep -v grep|wc -l` if [ $runcnt == 1 ] then return 0 else return 1 fi else return 1 fi } # Check if the ircu binary exists if ! [ -x $binfile ] then echo "Error: $binfile does not exist or is not the executable" exit 0 fi case "$1" in start) if ! ircd_running then echo -n "Starting ircu ..." $binfile sleep 2 if ! ircd_running then echo " Failed." echo " The ircu server did NOT start for some reason. Please examine your configuration." else echo " Done. (pid $ircupid)" fi else echo "ircu already running at pid $ircupid" fi ;; stop) if ircd_running; then echo -n "Killing ircu daemon (pid $ircupid) with signal 9 (die) ..." kill -9 $ircupid sleep 2 if ircd_running then echo " Failed." echo " The ircu is still running. Possible high load." else echo " Done" fi else echo "ircu not running" fi ;; rehash) if ircd_running; then echo -n "Killing ircu daemon (pid $ircupid) with signal 1 (rehash) ..." kill -1 $ircupid sleep 2 if ! ircd_running then echo " Failed." echo " The ircu crashed on rehash. Please examine your configuration." else echo " Done (pid $ircupid)" fi else echo "ircu not running" fi ;; restart) if ircd_running; then echo -n "Killing ircu daemon (pid $ircupid) with signal 2 (restart) ..." kill -2 $ircupid sleep 2 if ! ircd_running then echo " Failed." echo " The ircu crashed on rehash. Please examine your configuration." else echo " Done (pid $ircupid)" fi else echo -n "Starting ircu ..." $binfile sleep 2 if ! ircd_running then echo " Failed." echo " The ircu server did NOT start for some reason. Please examine your configuration." else echo " Done. (pid $ircupid)" fi fi ;; force-restart) $0 stop $0 start ;; check) if ircd_running; then echo "ircu is running at pid `cat $pidfile`" else echo "ircu is NOT running" rm -f $pidfile fi ;; *) echo "Usage: $0 {start|stop|rehash|restart|force-restart|check}" exit 1 ;; esac exit 0 --- CREDITS DELETED --- --- ChangeLog DELETED --- --- FEATURES DELETED --- --- INSTALL DELETED --- --- LICENSE DELETED --- --- Makefile DELETED --- --- config.h DELETED --- --- config.status DELETED --- --- stamp-h DELETED --- |