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

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Stopping the service)
 
(Added a template to support Template:Package. Inspired and adapted from a similar template done by the folks over at Gentoo wiki.)
 
Line 1: Line 1:
== Introduction ==
+
<includeonly>{{#if: {{{1|}}}|{{ {{{|safesubst:}}}#if:1|{{{1|}}}}}|{{Error|Trim|unnamed}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
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:
+
<console>
+
# ##i## emerge --ask <insert name of logger you want to install here>
+
</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 <name of logger you installed> default
+
# ##i## rc
+
* Starting <logger name>
+
</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]]
+

Latest revision as of 23:28, 10 January 2014

[create]

Template-info.png Template Documentation

To use this template insert {{Template:Trim}} into the page you wish to use it on and the page you wish.

This template does not have documentation, please add it