Sysvinit as the init system. Features of upstartUpstart solves the shortcomings of the previously mentioned sysvinit. With the event-driven model, upstart can:
Start the system faster
Dynamically start services when new hardware is discovered
Dynamic stop service when hardware is removed
These features enable the upstart to be used in desktop or portable systems to handle the dynami
terminologyUpstart's basic concepts and design are clear and clear. The main concept of upstart is job and event. A job is a unit of work that is used to complete a work, such as starting a background service or running a configuration command. Each job waits for one or more events, and once the event occurs, upstart triggers the job to complete the work.JobA jo
systems to handle the dynamic hardware plug-and-pull characteristics of these systems.Upstart Concepts and terminologyUpstart's basic concepts and design are clear and clear. The main concept of upstart is job and event. A job is a unit of work that is used to complete a work, such as starting a background service or running a configuration command. Each job waits for one or more events, and once the event
Three methods for making the services under the Upstart mechanism automatically start and expire at system startup + 1. upstart Mechanism
/********************************************************************** Author : Samson* Date : 02/04/2015* Test platform:* 3.13.0-24-generic* GNU bash, 4.3.11(1)-release * *******************************************************************/
Upstart's official server modi
How to add Upstart event-type tasks to the system under the upstart Mechanism
/********************************************************************** Author : Samson* Date : 11/15/2014* Test platform:* 3.13.0-24-generic* GNU bash, 4.3.11(1)-release * *******************************************************************/Currently, the system startup mechanism used by LinuxMint is based on ubuntu's
addition, new Server technologies such as cloud computing often require a single device to start up more quickly.
UpStart meets these requirements. Currently, not only does Ubuntu use UpStart, but even RHEL of enterprise-level servers use UpStart to replace sysvinit as the init system by default.Upstart features
UpStart
, Ubuntu uses Upstart init daemon.
This article is based on the recently published A Practical Guide to Ubuntu Linux.
There are already a variety of alternative products for sysvinit. The most famous one is initng, which can be used for Debian and can also work on Ubuntu. In the same location, Solaris uses SMF (Service Management Facility), while Mac OS uses launchd. Ubuntu is more inclined to combine the advantages of these software.
Sysvinit daemon
dependencies of various services and applications, initiates these functions and services based on events (signals), and manages them dynamically.The Initctl:upstart event Manager, which can be used by application processes to inform INIT which events (signals) occur.Telinit: Manage Run level (run level, retained for compatibility with other old distributions, in upsta
the network device is activated, connected to an AC power source, or when the system is sleeping.
Because the event can be captured by any other process in the system, we want to modify the other background to replace the execution Script directory. They send the event to init and then all these tasks can be performed in/etc/event. D is configured. Future Potential Includes executing tasks based on user habits, replacing Cron, anacron, and ATD with inetd background with time-based
Ubuntu starts with upstart () in lieu of the original sysvinit for the management of the service process starting from 6.10. RHEL (CentOS) has also switched from version 6 to upstart instead of the previous INIT.D/RCX.D linear start-up method.The Sysvinit daemon (Sysvinit package) is a runlevel-based system that uses RunLevel (single-user, multi-user, and more) and links (located in/etc/rc. The D directory,
. Upstart adopts a completely different method. It requires all the startup scripts, which are actually configuration files created in the/etc/init directory. Each Service has a file that defines the running levels, conditions, and events of script startup and shutdown,. We can see that upstart is much better than sysv, because sysv starts linearly and sequential
modification. Systemd has been incorporated into many software sources of Linux releases. systora 15 and later versions use systemd as the default INIT program in Linux. (In the feature of Fedora 14, systemd is used as a technical preview. Replace upstart in fedora 15 as the default manager. For more information, see the fedora official documentation and click the link)
SysvinitA daemon (sysvinit package) is a running-level system that uses the
After the system is upgraded from Ubuntu 9.04 to 9.10, the console of the system cannot be used, and the vbox must execute 'sudo/etc/init after each system restart. d/vboxdrv setup re-compile the kernel. As there is no inconvenience in other aspects, we can endure these two small problems.
Recently, if you want to install the official NV driver and disable X for installation, you have to deal with this problem.
The first thing that comes to mind is the problem that occurs during the startup proc
Today, I saw a microblog saying that the biggest change in the RHEL7 beta system may be replacing upstart with systemd, so I have to say goodbye to the chkconfig command.
Suddenly we were confused about systemV, upstart, and systemd. Previously, I always thought that upstart was in the Ubuntu system. Didn't RH systems use sysV? Should RHEL6 start to use
Three methods to make the services under the Upstart mechanism automatically start and fail at system startup + 1
/********************************************************************* * Author : Samson * Date : 02/04/2015 * Test platform: * 3.13.0-24-generic * GNU bash, 4.3.11(1)-release * *******************************************************************/
Upstart's official server modification method illustrates three
applications like system services! The following describes how to encapsulate nodejs applications as system services through upstart.
2. encapsulate the application as an upstart task script
Copy codeThe Code is as follows:~ Vi/etc/init/nodejs-moive.conf
Description "node. js jb51.net"
Start on startupStop on shutdown
ScriptExport HOME = "/root/deploy/movie"Echo $>/var/run/moiveme. pidExport NODE_ENV = pro
As an excellent engineer or architect, we must have a very good understanding and mastery of Linux systems. Here is an introduction to ordering a lot of people confused Linux self-booting.At present, there are 3 kinds of initialization system of Linux, according to the time of occurrence is init, upstart and SYSTEMD.Introduction to 3 Systems 1. InitInit is Sysvinit, which is the result of System V and is extended to other UNIX systems. Common init com
Http://www.ibm.com/developerworks/cn/views/linux/libraryview.jsp?sort_by=show_abstract=trueshow_all= search_flag=contentarea_by=linuxsearch_by= Analysis of +linux+ initialization +init+ system topic_by=-1type_by= all categories ibm-search= SearchBrief analysis of Linux initialization init system, part 1th: sysvinitIn recent years, the INIT process of Linux system has undergone two major evolution, the traditional sysvinit has faded out of the historical stage, the new init system
Start by understanding the following changes to the Ubuntu runlevel (init) corresponding tool history:1, Ubuntu 6.10 and previous versions use Sysvinit.2, Ubuntu 14.10 and the previous version of the use of upstart but still keep sysvinit coexist.Https://wiki.ubuntu.com/UpstartHttps://help.ubuntu.com/community/UpstartHowto3, Ubuntu 15.04 started using SYSTEMD, but you can choose to use the SYSTEMD or upstart
~ kill-9 21333
Direct and violent settlement. If you can start and turn off Nodejs applications like system services, how nice! The following is accomplished by upstart to encapsulate the Nodejs application as a system service.
Second, the application is encapsulated as a upstart task script
Copy Code code as follows:
~ vi/etc/init/nodejs-moive.conf
Description "Node.js jb51.n
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.