Ubuntu Super Daemon Settings

Source: Internet
Author: User
Tags syslog

Super Daemon is a Linux under the overall management of its own service settings, he can take over a lot of services set, just need to put their own configuration file under the/etc/xinetd.d/, then, how to configure it exactly?
First of all, under Ubuntu, and there is no preset installation xinetd This stuff, then we will install it manually, simply deadly oh.
sudo apt-get install xinetd
After the installation, will be under the/etc/, generate xinetd.conf This xinetd configuration file, use Nano text editor to edit.
Nano/etc/xinetd.conf
# Simple configuration file for xinetd
# Some defaults, and include/etc/xinetd.d/

Defaults
{

# Please note the need a log_type line to be able to use log_on_success
# and Log_on_failure. The default is the following:
# log_type = SYSLOG Daemon Info

}

Includedir/etc/xinetd.d
We should be able to see the above configuration, specifically what is the meaning of it. That is, the text is configured to conform to the above format. What do we need to add to the specific content?
Log_type = SYSLOG Daemon info (the type of service logged by the login log)
Log_on_failure = Host (When an error occurs, which host is recorded, and that host is the name of the host, then what can we change to add or change?). For example, Pid,host,usrid, all can be OH)
log_on_success = PID host DURATION EXIT (the project that was recorded at the time of the successful startup, the DURATION said that the user uses the host time, EXIT as the name implies, is the case of departure)
The above three, represents the basic setting of the xinetd.conf, mainly to record the start of the situation. This, for the pursuit of the problem, is very important oh, for example, one day, you find that should start the project all did not start, is what happened, you can come here to see, of course, there is also cron this thing for a reason, here, just insert a sentence.
So, what does it usually contain in our entire xinetd.conf?
In general, these 4 categories are included:
A. General settings (that is, the one above us)
B. Advanced Settings.
So, what about advanced settings? is to the environment is set, what is the environment setting, also, Groups,user,umask, and so on these environment variables oh. Because Xinetd.conf is a general setting for all of the services it manages, that is, when the service it manages does not have the relevant parameters set, it is based on the xinetd.conf, so we have 2 options: 1, the overall setting is strict, the management service can set some parameters less, 2, the overall setting relaxed, as far as possible Meticulous set of management services, then we can be based on different services, and then detailed configuration. In all the different circumstances, how should we set up, as far as I am concerned, I am inclined to the latter, because each service needs the environment is different, can maximize their own control of the east to plan. As in our laboratory management, general loose, concrete implementation to the details above, it is more detailed.
Finally, in general, this text is set to the following content.
# Simple configuration file for xinetd
# Some defaults, and include/etc/xinetd.d/

Defaults
{

# Service startup success or failure, and log file of related logging behavior        log_type        = SYSLOG Daemon info  <== Log on file service type        log_on_failure  = Host   <== the information that needs to be logged when an error occurs (host)        log_on_success  <== The record information at the time of the successful start or login # Allow or restrict online default values        CPS         <== The maximum number of online <== clients of the same source is only allowed IPv6? You can temporarily do not start IPV6 support! # Configuration of environment parameters groups = Yes Umask = 002      



}

Includedir/etc/xinetd.d
The last includedir means that the setting of this thing includes the settings under the/etc/xinetd.d/directory.

Ubuntu Super Daemon settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.