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

From Funtoo
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
{{Person
+
== Introduction ==
|Full name=Jian Zhou
+
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=janzhou@funtoo.org
+
metalog
|Nick=janzhou
+
syslog-ng
|Geoloc=30.511011508373, 114.42548274994
+
|Location name=Wuhan National Laboratory for Optoelectronics
+
|Roles={{Role
+
|Role type=Staff
+
|Role desc=Core Team
+
|Start date=2012/12/24
+
}}
+
|Maintains={{Ebuild
+
|Ebuild=app-i18n/ibus-table-chinese
+
|Overlay=Funtoo-overlay
+
}}{{Ebuild
+
|Ebuild=app-i18n/ibus-table
+
|Overlay=Funtoo-overlay
+
}}{{Ebuild
+
|Ebuild=app-i18n/ibus-pinyin
+
|Overlay=Funtoo-overlay
+
}}{{Ebuild
+
|Ebuild=app-i18n/ibus
+
|Overlay=Funtoo-overlay
+
}}
+
|Blogs={{Blog
+
|Name=Jian Zhou
+
|URL=http://janzhou.com
+
}}
+
}}
+
== Biography ==
+
{{{biography|I'm a Computer Science and Technology Ph.D. candidate at Huazhong University of Science & Technology, Wuhan, China.}}}
+
  
See more details on my personal website[http://janzhou.com].
+
== 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>
  
== History on Funtoo ==
+
 
{{{history_funtoo|Using Funtoo since 2012.}}}
+
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]]

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