X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fzebrasrv;h=1dc2cea500aed7daefa806ba09225f7667dbc20d;hp=d99bef500f11719bf4434c9174ef57e6b3c4e88d;hb=c97718edd01f7d1813edbf94c58b93a747143311;hpb=382ea2685628fcfb8f7c5cc4db35d9f9f505ed4a diff --git a/util/zebrasrv b/util/zebrasrv index d99bef5..1dc2cea 100755 --- a/util/zebrasrv +++ b/util/zebrasrv @@ -1,11 +1,11 @@ #! /bin/sh -# $Id: zebrasrv,v 1.1 2003-05-19 21:35:02 adam Exp $ # 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) @@ -16,7 +16,7 @@ case "$1" in 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 tcp:@:210 + start-stop-daemon --start --quiet --background --pidfile $d/zebrasrv.pid --exec /usr/bin/zebrasrv -- -w $d -u $uid -l log $listen done echo "." ;; @@ -31,7 +31,7 @@ case "$1" in 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 tcp:@:210 + 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 "." ;;