https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115411
Revision: 115411
Author: hashar
Date: 2012-05-21 15:53:17 +0000 (Mon, 21 May 2012)
Log Message:
-----------
override program name to 'wikibugs'
On Linux and Mac OS X, at least, the perl script will now expose itself
as being named 'wikibugs'. That makes process monitoring a bit easier
with nagios (check_procs uses the program name).
Modified Paths:
--------------
trunk/tools/wikibugs/wikibugs
Modified: trunk/tools/wikibugs/wikibugs
===================================================================
--- trunk/tools/wikibugs/wikibugs 2012-05-21 15:17:22 UTC (rev 115410)
+++ trunk/tools/wikibugs/wikibugs 2012-05-21 15:53:17 UTC (rev 115411)
@@ -18,6 +18,9 @@
use Getopt::Long;
use Pod::Usage;
+# Override program name to easily monitor it from nagios
+$0 = "wikibugs @ARGV";
+
=head1 NAME
wikibugs - A bugzilla IRC notification bot
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs