diff --git a/Changes b/Changes index e2ab87273..95280d63b 100644 --- a/Changes +++ b/Changes @@ -2275,3 +2275,4 @@ seen. gmtime warning still there - Fixed a problem with a fix for +b/+e reported by AngryWolf (#0001117) - Fixed a documentation typo reported by Z3l3zT (#0001066) - Clarified what ban server {} does, suggested by Joolz (#0001110) +- Fixed a problem related to crontab reported by LRL (#0001034) diff --git a/autoconf/configure.in b/autoconf/configure.in index 85149eec9..8ca516f45 100644 --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -384,5 +384,6 @@ dnl make dnl AC_MSG_RESULT(installing TRE regex library) dnl make install dnl cd $cur_dir -AC_OUTPUT(Makefile src/modules/Makefile unreal) +AC_OUTPUT(Makefile src/modules/Makefile unreal ircdcron/ircdchk) chmod 0700 unreal +chmod 0700 ircdcron/ircdchk diff --git a/configure b/configure index 52e4d447b..b14fa80b3 100755 --- a/configure +++ b/configure @@ -9963,7 +9963,7 @@ if test `uname -p` = "ppc" ; then fi fi -ac_config_files="$ac_config_files Makefile src/modules/Makefile unreal" +ac_config_files="$ac_config_files Makefile src/modules/Makefile unreal ircdcron/ircdchk" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -10437,6 +10437,7 @@ do "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; "unreal" ) CONFIG_FILES="$CONFIG_FILES unreal" ;; + "ircdcron/ircdchk" ) CONFIG_FILES="$CONFIG_FILES ircdcron/ircdchk" ;; "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} @@ -10982,3 +10983,4 @@ if test "$no_create" != yes; then fi chmod 0700 unreal +chmod 0700 ircdcron/ircdchk diff --git a/ircdcron/ircdchk b/ircdcron/ircdchk.in old mode 100755 new mode 100644 similarity index 82% rename from ircdcron/ircdchk rename to ircdcron/ircdchk.in index 2e2556baa..088927106 --- a/ircdcron/ircdchk +++ b/ircdcron/ircdchk.in @@ -17,19 +17,17 @@ # 0,10,20,30,40,50 * * * * /home/mydir/ircdchk >/dev/null 2>&1 # # change this to the mail address to mail output to: -MAIL=me -# change this to the directory you run your ircd from: -dir="../src" +# MAIL=me -# change this to the name of your ircd's file in that directory: -ircdexe="ircd" +# These values shouldn't need to be changed -# I wouldn't touch this if I were you. -ircdname="../ircd.pid" +# The path to the ircd binary +ircdexe="@BINDIR@" + +# The path to the ircd pid file +ircdname="@IRCDDIR@/ircd.pid" ########## you probably don't need to change anything below here ########## - -cd $dir if test -r $ircdname; then # there is a pid file -- is it current? ircdpid=`cat $ircdname` @@ -46,4 +44,4 @@ fi echo "" echo "Couldn't find the ircd running. Reloading it..." echo "" -./$ircdexe +$ircdexe