Difference between pages "User:Bladewing" and "Installing a Logger"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Created page with "{{Person |Full name=Lukas Iffländer |Email=lukas.ifflaender@gmx.net |Nick=--- |Geoloc=49.77957, 9.96596999999997 |Location name=Würzburg, Bavaria, Germany |Roles={{Role |Rol...")
 
 
Line 1: Line 1:
{{Person
+
== Introduction ==
|Full name=Lukas Iffländer
+
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:
|Email=lukas.ifflaender@gmx.net
+
metalog
|Nick=---
+
syslog-ng
|Geoloc=49.77957, 9.96596999999997
+
 
|Location name=Würzburg, Bavaria, Germany
+
== Installation and adding to runlevel ==
|Roles={{Role
+
To install a logger, run the following command:
|Role type=User
+
<console>
|Role desc=C/C++ Programmer
+
# ##i## emerge --ask metalog
|Start date=2009/03/01
+
 
}}
+
These are the packages that would be merged, in order:
|Maintains=
+
 
|Blogs=
+
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
 +
# ##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:00, 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 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
#  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 ...