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

(Difference between pages)
(Created page with "{{Person |Full name=Kitten GNU |Nick=KittenGNU |Geoloc=59.25171091935533, 10.41747584939003 |Location name=Nøtterøy |Roles={{Role |Role type=User |Role desc=Just a regular u...")
 
(Created page with "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 lo...")
 
Line 1: Line 1:
{{Person
+
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:
|Full name=Kitten GNU
+
metalog
|Nick=KittenGNU
+
syslog-ng
|Geoloc=59.25171091935533, 10.41747584939003
+
 
|Location name=Nøtterøy
+
 
|Roles={{Role
+
To install a logger, run the following command:
|Role type=User
+
<console>
|Role desc=Just a regular user
+
# ##i## emerge --ask <insert name of logger you want to install here>
}}
+
</console>
|Maintains=
+
 
|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>
 +
# ##i## rc-update add <name of logger you installed> default
 +
# ##i## rc
 +
* Starting <logger name>
 +
</console>
 +
 
 +
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 00:54, 19 October 2013

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


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>

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