[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Small change request



John Carlyle- Clarke schrieb am 2003-06-25:

> In the process of composing a long email asking why my texpire wasn't
> running, even though it ran manually and showed up in cron.log, I
> realised what my problem was.
> 
> To save idiots like me banging their heads on the wall, could texpire
> (in version 2, which I use) write something to the log in this case?
> Just the message like "texpire: lockfile /var/lock/news/fetchnews.lck
> exists, abort" would be great.

[X] Done, will be in the next snapshot.

Thank you for the report/suggestion.

If you want to test (it works for me), then you can use the patch below,
versus the latest leafnode-2 snapshot.



Update of /var/CVS/leafnode-2
In directory merlin:/home/emma/mywork/leafnode-2

Modified Files:
	texpire.c 
Log Message:
Write "lockfile exists" message to syslog as well. Suggested by John Carlyle-Clarke.

Index: texpire.c
===================================================================
RCS file: /var/CVS/leafnode-2/texpire.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- texpire.c	10 Sep 2002 00:28:41 -0000	1.34
+++ texpire.c	25 Jun 2003 11:19:16 -0000	1.35
@@ -1015,7 +1015,8 @@
 	free(conffile);
 
     if (lockfile_exists(LOCKWAIT)) {
-	fprintf(stderr, "%s: lockfile %s exists, abort\n", argv[0], lockfile);
+	ln_log(LNLOG_SERR, LNLOG_CTOP, "%s: lockfile %s exists, abort\n",
+		argv[0], lockfile);
 	exit(EXIT_FAILURE);
     }
 

-- 
Matthias Andree

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list