Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
/* /*
* $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. * Copyright (C) 1994 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -108,11 +108,9 @@ checkstatus(FILE *fp, ...@@ -108,11 +108,9 @@ checkstatus(FILE *fp,
} }
else else
{ {
if (system("echo 'Note: LysKOM is down' | Mail ceder") != 0) fprintf(stderr,
{ "updateLysKOM: LysKOM has been down for a long time\n");
perror("updateLysKOM: system failed (2)"); exit(2);
exit(1);
}
} }
} }
...@@ -138,7 +136,7 @@ main (int argc, ...@@ -138,7 +136,7 @@ main (int argc,
{ {
case 'V': case 'V':
case 'v': case 'v':
fprintf(stderr, "updateLysKOM %d $Revision: 1.2 $\n", fprintf(stderr, "updateLysKOM %d $Revision: 1.3 $\n",
#include "version.incl" #include "version.incl"
); );
exit(0); exit(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment