fix up crontab script
This commit is contained in:
parent
642aebbe1a
commit
fab54c7c72
2 changed files with 5 additions and 3 deletions
|
@ -4,6 +4,8 @@ Anything we add/remove/fix/change is in here (even our rants)
|
||||||
Fish (F), Mark (M), DeadNotBuried (D)
|
Fish (F), Mark (M), DeadNotBuried (D)
|
||||||
===============================================================================
|
===============================================================================
|
||||||
* NeoStats * Version 3.0.b1-dev
|
* 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)
|
- add plexus 3 protocol file for reference (D)
|
||||||
- Fix compile errors on GCC 2.95.4 (D)
|
- Fix compile errors on GCC 2.95.4 (D)
|
||||||
- QuoteServ shouldn't send signon messages to Neo Bots (F)
|
- QuoteServ shouldn't send signon messages to Neo Bots (F)
|
||||||
|
|
|
@ -40,7 +40,7 @@ if [ "$1" = "-c" ] ; then
|
||||||
shift;
|
shift;
|
||||||
if test -r $dir/$pidfile; then
|
if test -r $dir/$pidfile; then
|
||||||
# there is a pid file -- is it current?
|
# there is a pid file -- is it current?
|
||||||
ircdpid=`cat $pidfile`
|
ircdpid=`cat $dir/$pidfile`
|
||||||
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
|
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
|
||||||
# it's still going
|
# it's still going
|
||||||
# back out quietly
|
# back out quietly
|
||||||
|
@ -69,7 +69,7 @@ elif [ "$1" = "start" ] ; then
|
||||||
shift;
|
shift;
|
||||||
if test -r $dir/$pidfile; then
|
if test -r $dir/$pidfile; then
|
||||||
# there is a pid file -- is it current?
|
# there is a pid file -- is it current?
|
||||||
ircdpid=`cat $pidfile`
|
ircdpid=`cat $dir/$pidfile`
|
||||||
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
|
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
|
||||||
# NeoStats is already running
|
# NeoStats is already running
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -104,7 +104,7 @@ elif [ "$1" = "stop" ] ; then
|
||||||
#stop Neostats
|
#stop Neostats
|
||||||
if test -r $dir/$pidfile; then
|
if test -r $dir/$pidfile; then
|
||||||
# there is a pid file -- is it current?
|
# there is a pid file -- is it current?
|
||||||
ircdpid=`cat $pidfile`
|
ircdpid=`cat $dir/$pidfile`
|
||||||
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
|
if `kill -CHLD $ircdpid >/dev/null 2>&1`; then
|
||||||
# NeoStats is already running
|
# NeoStats is already running
|
||||||
kill -TERM $ircdpid
|
kill -TERM $ircdpid
|
||||||
|
|
Reference in a new issue