Difference between pages "Widget:DonateBitcoin" and "Installing a Logger"

(Difference between pages)
(Created page with "<div class="donate"><table border="0"><tr><td valign="middle" align="center"><a class="coinbase-button" data-code="055e3c75d3f622de6f18384a02ece75b" data-button-style="donatio...")
 
 
Line 1: Line 1:
<div class="donate"><table border="0"><tr><td valign="middle" align="center"><a class="coinbase-button" data-code="055e3c75d3f622de6f18384a02ece75b" data-button-style="donation_large" data-custom="DONATE" href="https://coinbase.com/checkouts/055e3c75d3f622de6f18384a02ece75b">Donate Bitcoins</a><script src="https://coinbase.com/assets/button.js" type="text/javascript"></script></td><td><!--{$blurb|default:''}--></td></tr></table></div>
+
== Introduction ==
 +
In case you ever need to view important system messages, it is a wise idea to install a system logger. System loggers create a log in ‘’/var/log’’ Several different loggers exist. Listed below are some of the more commonly used loggers:
 +
* '''Metalog''' - "Metalog is a modern replacement for syslogd and klogd. The logged messages can be dispatched according to their facility, urgency, program name and/or Perl-compatible regular expressions."  
 +
* '''syslog-ng'''
 +
* '''rsyslog'''
 +
 
 +
== Installation and adding to runlevel ==
 +
To install a logger, run the following command:
 +
<console>
 +
# ##i## emerge --ask metalog
 +
 
 +
These are the packages that would be merged, in order:
 +
 
 +
Calculating dependencies... done!
 +
[ebuild  N    ] app-admin/metalog-3-r1  USE="unicode" 353 kB
 +
 
 +
Total: 1 package (1 new), Size of downloads: 353 kB
 +
Would you like to merge these packages? [Yes/No] # ##i## yes
 +
 
 +
</console>
 +
 
 +
After installing the logger, we have to add its initialization script to RC’s default runlevel. The default runlevel, defined at /etc/runlevels/default, contains symbolic links to all system initialization scripts that are run by default. To add the logger to the runlevel and then start the logger, run the following:
 +
<console>
 +
# ##i## rc-update add metalog default
 +
* service metalog added to runlevel default
 +
# ##i## rc
 +
* Starting metalog ...
 +
</console>
 +
 
 +
== Stopping the service ==
 +
If, for whatever reason, you need to stop a service manually, you can run its initialization script directly from /etc/init.d:
 +
<console>
 +
# ##i##/etc/init.d/metalog stop
 +
* Stopping metalog ...
 +
</console>
 +
[[Category:System]]

Revision as of 01:21, 19 October 2013

Introduction

In case you ever need to view important system messages, it is a wise idea to install a system logger. System loggers create a log in ‘’/var/log’’ Several different loggers exist. Listed below are some of the more commonly used loggers:

  • Metalog - "Metalog is a modern replacement for syslogd and klogd. The logged messages can be dispatched according to their facility, urgency, program name and/or Perl-compatible regular expressions."
  • syslog-ng
  • rsyslog

Installation and adding to runlevel

To install a logger, run the following command:

#  emerge --ask metalog

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-admin/metalog-3-r1  USE="unicode" 353 kB

Total: 1 package (1 new), Size of downloads: 353 kB
Would you like to merge these packages? [Yes/No] #  yes

After installing the logger, we have to add its initialization script to RC’s default runlevel. The default runlevel, defined at /etc/runlevels/default, contains symbolic links to all system initialization scripts that are run by default. To add the logger to the runlevel and then start the logger, run the following:

#  rc-update add metalog default
 * service metalog added to runlevel default
#  rc
 * Starting metalog ...

Stopping the service

If, for whatever reason, you need to stop a service manually, you can run its initialization script directly from /etc/init.d:

# /etc/init.d/metalog stop
 * Stopping metalog ...