From fab54c7c7225e01e5110edd75d90fc818454a2a0 Mon Sep 17 00:00:00 2001 From: Fish <> Date: Tue, 16 May 2006 16:47:58 +0000 Subject: [PATCH] fix up crontab script --- ChangeLog | 2 ++ neostats.in | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f98a4a9a..741888e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Anything we add/remove/fix/change is in here (even our rants) Fish (F), Mark (M), DeadNotBuried (D) =============================================================================== * NeoStats * Version 3.0.b1-dev + - Fix up neostats startup script etc for cron related issues - Thanks to + Digerati for the heads up(F) - add plexus 3 protocol file for reference (D) - Fix compile errors on GCC 2.95.4 (D) - QuoteServ shouldn't send signon messages to Neo Bots (F) diff --git a/neostats.in b/neostats.in index 481d045a..f0935a18 100755 --- a/neostats.in +++ b/neostats.in @@ -40,7 +40,7 @@ if [ "$1" = "-c" ] ; then shift; if test -r $dir/$pidfile; then # there is a pid file -- is it current? - ircdpid=`cat $pidfile` + ircdpid=`cat $dir/$pidfile` if `kill -CHLD $ircdpid >/dev/null 2>&1`; then # it's still going # back out quietly @@ -69,7 +69,7 @@ elif [ "$1" = "start" ] ; then shift; if test -r $dir/$pidfile; then # there is a pid file -- is it current? - ircdpid=`cat $pidfile` + ircdpid=`cat $dir/$pidfile` if `kill -CHLD $ircdpid >/dev/null 2>&1`; then # NeoStats is already running echo "" @@ -104,7 +104,7 @@ elif [ "$1" = "stop" ] ; then #stop Neostats if test -r $dir/$pidfile; then # there is a pid file -- is it current? - ircdpid=`cat $pidfile` + ircdpid=`cat $dir/$pidfile` if `kill -CHLD $ircdpid >/dev/null 2>&1`; then # NeoStats is already running kill -TERM $ircdpid