summaryrefslogtreecommitdiff
path: root/eathena-monitor.c
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-11 21:37:28 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-11 21:37:28 +0100
commita991a5d8865c9b4c058d1900e8c4a07a09f31081 (patch)
treee375baff9d81764f14d61f49843db5be9855cf3e /eathena-monitor.c
parent4366a268eef0dcb1cc823596add73c83d2984914 (diff)
downloadserverdata-a991a5d8865c9b4c058d1900e8c4a07a09f31081.tar.gz
serverdata-a991a5d8865c9b4c058d1900e8c4a07a09f31081.tar.bz2
serverdata-a991a5d8865c9b4c058d1900e8c4a07a09f31081.tar.xz
serverdata-a991a5d8865c9b4c058d1900e8c4a07a09f31081.zip
eathena.sh and eathena-monitor corrections
When the monitor didn't find the configuration, it didn't print out the path it actually tried. The shell script was modified to actually pass the path to the configuration to the monitor, otherwise it can't find this itself when the 'workdir' doesn't match its default value.
Diffstat (limited to 'eathena-monitor.c')
-rw-r--r--eathena-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eathena-monitor.c b/eathena-monitor.c
index 3ab7f0f2..8e9d985c 100644
--- a/eathena-monitor.c
+++ b/eathena-monitor.c
@@ -79,7 +79,7 @@ int read_config(char *filename) {
int errors = 0;
if ( !(input = fopen(filename,"r")) && !(input = fopen (config, "r"))) {
- fprintf (stderr, "ERROR: Config file doesn't exist (%s and %s), using builtin defaults\n",filename,CONFIG);
+ fprintf (stderr, "ERROR: Config file doesn't exist (%s and %s), using builtin defaults\n", filename, config);
return -1;
}