1
0
mirror of https://github.com/anope/anope.git synced 2026-06-23 20:06:38 +02:00
Files
anope/data/example.chk
T
ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b 44c4af9df4 BUILD : 1.7.4 (223) BUGS : NOTES : Anope crontab failed because when path was too long the ps ux was cut short so grep failed. ps ux was changed to ps auwx to stop this problem (w is stops cutting the lines short)
git-svn-id: svn://svn.anope.org/anope/trunk@223 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@160 5417fbe8-f217-4b02-8779-1006273d7864
2004-06-30 19:29:09 +00:00

45 lines
886 B
Bash

#!/bin/sh
# Crontab script for Anope
#
# To know how to install the crontab, read the INSTALL file.
###############################################################
# CONFIGURATION
###############################################################
# Anope binary directory
ANOPATH=/home/ircd/services/
# Name of the pid file
ANOPIDF=services.pid
# Name of the executable
ANOPROG=services
# Parameters to pass to the executable
ANOARGS=""
#ANOARGS="-debug"
###############################################################
# DON'T EDIT ANYTHING BELOW #
###############################################################
PATH=/bin:/usr/bin:/usr/local/bin
ANOPID=
cd $ANOPATH
if [ -f $ANOPIDF ]
then
ANOPID=`cat $ANOPIDF`
if [ `ps auwx | grep $ANOPROG | grep $ANOPID | grep -v -c grep` = 1 ]
then
exit
fi
rm -f $ANOPIDF
fi
./$ANOPROG $ANOARGS