Difference between pages "Template:Person" and "Installing a Logger"

From Funtoo
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
<noinclude>
+
== Introduction ==
This is the "Person" template.
+
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:
It should be called in the following format:
+
metalog
<pre>
+
syslog-ng
{{Person
+
 
|Full name=
+
== Installation and adding to runlevel ==
|Email=
+
To install a logger, run the following command:
|Nick=
+
<console>
|Geoloc=
+
# ##i## emerge --ask <insert name of logger you want to install here>
|Maintains=
+
</console>
|Location name=
+
 
|Roles=
+
 
|Blogs=
+
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>
</pre>
+
# ##i## rc-update add <name of logger you installed> default
Edit the page to see the template text.
+
# ##i## rc
</noinclude><includeonly><div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin: 40px; font-family: Helvetica;">
+
* Starting <logger name>
<div float="left">{{#gravatar_img:{{#show:{{FULLPAGENAME}}|?Email|link=none}}}}</div>
+
</console>
{{#if:{{{Full name|}}}|== [[Full name::{{{Full name|}}} ]]==}}
+
 
{{#if:{{{Roles|}}}|{{{Roles}}}|{{#if:{{{Geoloc|}}}|{{Role|Role type=User}}|}}}}
+
== Stopping the service ==
== Contact ==
+
If, for whatever reason, you need to stop a service manually, you can run its initialization script directly from /etc/init.d:
{|
+
<console>
|{{#if:{{{Nick|}}}|freenode: <tt>[[Nick::{{{Nick}}}]]</tt>}}
+
# ##i##/etc/init.d/metalog stop
|-
+
* Stopping metalog ...
|{{#if:{{{Email|}}}|[[Email::{{{Email}}}]]}}
+
 
|}
+
</console>
{{#if:{{{Geoloc|}}}|
+
[[Category:System]]
== Location ==
+
{{
+
#display_point:
+
coordinates={{{Geoloc|}}}
+
| zoom=5
+
| width=100%
+
| height=350
+
}} <span style="font-size: 8pt;">[[Location name::{{{Location name|}}}]] ([[Geoloc::{{{Geoloc}}}]]|}})</span>
+
</div>{{{Maintains|}}}{{{Blogs|}}}
+
[[Category:People]]
+
__NOTOC__
+
__NOEDITSECTION__
+
__NOTITLE__</includeonly>
+

Revision as of 00:56, 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 syslog-ng

Installation and adding to runlevel

To install a logger, run the following command:

#  emerge --ask <insert name of logger you want to install here>


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 <name of logger you installed> default
#  rc
 * Starting <logger name>

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 ...