diff options
| author | svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b <svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-28 21:59:56 +0000 |
|---|---|---|
| committer | svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b <svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-28 21:59:56 +0000 |
| commit | 55bf4dbcabf378e9472b7d31d6edf87f6ac853e9 (patch) | |
| tree | 7a9454ea6b8750256e242cf6d5fba3ca7a4b5044 /data/example.chk | |
Initial Anope Import
git-svn-id: svn://svn.anope.org/anope/trunk@1 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'data/example.chk')
| -rw-r--r-- | data/example.chk | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/data/example.chk b/data/example.chk new file mode 100644 index 000000000..fe7632417 --- /dev/null +++ b/data/example.chk @@ -0,0 +1,44 @@ +#!/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 ux| grep $ANOPROG | grep $ANOPID | grep -v -c grep` = 1 ] + then + exit + fi + rm -f $ANOPIDF +fi + +./$ANOPROG $ANOARGS |
