Commit e6e19a7e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(checkstatus): Don't send mail to ceder. Instead, write an error

message to stderr, exit with exit status != 0, and count on cron to
deliver the message to whoever should get it.
parent 4552c893
/*
* $Id: updateLysKOM.c,v 1.2 1994/04/04 18:30:16 ceder Exp $
* $Id: updateLysKOM.c,v 1.3 1994/04/04 18:58:26 ceder Exp $
* Copyright (C) 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -108,11 +108,9 @@ checkstatus(FILE *fp,
}
else
{
if (system("echo 'Note: LysKOM is down' | Mail ceder") != 0)
{
perror("updateLysKOM: system failed (2)");
exit(1);
}
fprintf(stderr,
"updateLysKOM: LysKOM has been down for a long time\n");
exit(2);
}
}
......@@ -138,7 +136,7 @@ main (int argc,
{
case 'V':
case 'v':
fprintf(stderr, "updateLysKOM %d $Revision: 1.2 $\n",
fprintf(stderr, "updateLysKOM %d $Revision: 1.3 $\n",
#include "version.incl"
);
exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment