From 585e87e5a6b274a8ee13b5432a462afd95c04096 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 18 Mar 2013 14:53:53 +0100 Subject: [PATCH] Remove two un-maintained scripts They now require zero maintenance - which is good. --- util/Makefile.am | 2 +- util/zebrasrv | 50 -------------------------------------------------- util/zebrasrv.rh | 51 --------------------------------------------------- 3 files changed, 1 insertion(+), 102 deletions(-) delete mode 100755 util/zebrasrv delete mode 100755 util/zebrasrv.rh diff --git a/util/Makefile.am b/util/Makefile.am index fe35a2b..9e48f41 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -7,7 +7,7 @@ TESTS = $(check_PROGRAMS) bin_SCRIPTS = idzebra-config-2.0 idzebra-abs2dom -EXTRA_DIST = zebrasrv.rh tstcharmap.chr emptycharmap.chr tstpass.txt tstres.cfg mk_version.tcl idzebra-abs2dom +EXTRA_DIST = tstcharmap.chr emptycharmap.chr tstpass.txt tstres.cfg mk_version.tcl idzebra-abs2dom DISTCLEANFILES = idzebra-config-2.0 diff --git a/util/zebrasrv b/util/zebrasrv deleted file mode 100755 index 1dc2cea..0000000 --- a/util/zebrasrv +++ /dev/null @@ -1,50 +0,0 @@ -#! /bin/sh -# Start and stop idzebra script for Debian. - -test -x /usr/bin/zebrasrv || exit 0 - -dirs="/var/lib/idzebra" -uid=nobody -listen="tcp:@:210" - -case "$1" in - start) - for d in $dirs; do - if [ ! -d $d ]; then - mkdir $d - fi - done - echo -n "Starting IDZebra server: zebrasrv" - for d in $dirs; do - start-stop-daemon --start --quiet --background --pidfile $d/zebrasrv.pid --exec /usr/bin/zebrasrv -- -w $d -u $uid -l log $listen - done - echo "." - ;; - stop) - echo -n "Stopping IDZebra server: zebrasrv" - for d in $dirs; do - start-stop-daemon --stop --quiet --oknodo --pidfile $d/zebrasrv.pid - done - echo "." - ;; - - reload|force-reload) - echo -n "Reloading IDZebra server's configuration" - for d in $dirs; do - start-stop-daemon --stop --signal 1 --quiet --background --oknodo --pidfile $d/zebrasrv.pid --exec /usr/bin/zebrasrv -- -w $d -u $uid -l log $listen - done - echo "." - ;; - - restart) - $0 stop - sleep 2 - $0 start - ;; - - *) - echo "Usage: /etc/init.d/zebrasrv {start|stop|reload|force-reload|restart}" - exit 1 -esac - -exit 0 diff --git a/util/zebrasrv.rh b/util/zebrasrv.rh deleted file mode 100755 index 3361f2b..0000000 --- a/util/zebrasrv.rh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# chkconfig: 2345 85 15 -# description: Redhat init.d zebrasrv script. -# processname: zebrasrv - -# source function library -. /etc/rc.d/init.d/functions - -zebradir=/home/meta/silkeborg/db -srv=/home/meta/silkeborg/zmbol/index/zmbolsrv -user=nobody - -if [ ! -d ${zebradir} ]; then - echo "No directory $zebradir" - exit 0 -fi - -if [ ! -f ${srv} ]; then - echo "No server $srv" - exit 0 -fi - -cd $zebradir - -case "$1" in - start) - echo -n "Starting zebrasrv " - - ${srv} -l srv.log -u $user tcp:@:210 & - - echo - ;; - stop) - echo -n "Shutting zebrasrv " - - kill `cat $zebradir/zebrasrv.pid` - - echo "" - ;; - restart|reload) - $0 stop - $0 start - ;; - *) - echo "Usage: zebrasrv {start|stop|restart|reload}" - exit 1 -esac - -exit 0 - -- 1.7.10.4