CN109086094A - Method, system, device and the storage medium of application service self-starting - Google Patents
Method, system, device and the storage medium of application service self-starting Download PDFInfo
- Publication number
- CN109086094A CN109086094A CN201810573673.4A CN201810573673A CN109086094A CN 109086094 A CN109086094 A CN 109086094A CN 201810573673 A CN201810573673 A CN 201810573673A CN 109086094 A CN109086094 A CN 109086094A
- Authority
- CN
- China
- Prior art keywords
- information
- application service
- starting
- operating system
- cycle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of methods of application service self-starting, which comprises generates basic operation information during normal operation in operating system;The boot sequence of application service is determined according to the basic operation information;Start the application service after the operating system is restarted based on the boot sequence.Method of the invention can automatic identification determine and need application service and its boot sequence of self-starting, realize the self-starting for being directed to complicated applications service, substantially shorten the processing time of failure, improve the availability of system.Meanwhile method configuration of the invention is easy to use, for the first time after initial configuration, no longer needs to human intervention, and method of the invention is to self-starting strict implement admission control, it is highly-safe.
Description
Technical field
The present invention relates to field of computer technology, more particularly, it is related to a kind of method of application service self-starting, is
System, device and storage medium.
Background technique
As information system virtual technology develops, financial data center has used virtual machine as service on a large scale at present
Device.Compared to physical machine is used, virtual machine can more make full use of device resource as server, reduce equipment purchase cost.
But while virtual machine is as server, also some outstanding problems of bring.Wherein, it is main be server delay machine rate compared with
Height, virtual machine is generally basede on x86 physical server at present, and server farms are also bigger, therefore system failure is caused to occur
Probability is higher.For the continuity of safeguards system business, it is necessary to it is quick certainly to take effective measures business after realizing virtual machine delay machine
It is dynamic to restore.
At present after virtual machine delay machine, resources of virtual machine automatic drift can be made to other hosts by related software, and complete
It is restarted automatically at operating system.On this basis, by being pre-configured with starting operating system startup item, it can be achieved that individual basis works
Tool or the automatic pull-up function of service.And for the application service on operating system, since its is multifarious, start content
And boot sequence otherness is very big, and starting content can also run with system and change, and rely on this static configuration merely
Starting up mode, is technically unable to satisfy current needs.
In the case where current virtual machine delay machine, to restore application service, it is still desirable to operation maintenance personnel human intervention and processing.
Due to being limited by human factor, the processing time relatively lags behind, and so that application failure recovery capability is had a greatly reduced quality, while there is also leakages
It rises, the wrong operational risk for playing application service.
Summary of the invention
In order to solve the above-mentioned problems in the prior art, the present invention provides a kind of sides of application service self-starting
Method, system, device and storage medium, can automatic identification determine and need application service and its boot sequence of self-starting, realize
For the self-starting of complicated applications service.
Embodiment according to the present invention provides the method for application service self-starting, which comprises is in operation
System generates basic operation information during normal operation;The boot sequence of application service is determined according to the basic operation information;Base
Start the application service after the operating system is restarted in the boot sequence.
In certain embodiments of the present invention, the basic operation information includes Resident Process information;It is described to operate
System generate during normal operation basic operation information include: the operating system during normal operation, obtain the operation
Progress information of the system within first cycle of operation, compare progress information of the operating system within first cycle of operation and
Progress information in second cycle of operation obtains the Resident Process information, wherein first cycle of operation is different from described
Second cycle of operation.
In certain embodiments of the present invention, the basic operation information includes Resident Process information and its corresponding answers
Use service type;It is described that generate basic operation information during normal operation in operating system include: normal in the operating system
During operation, progress information of the operating system within first cycle of operation is obtained, and determines that the progress information is corresponding
The application service type of application service compares progress information of the operating system within first cycle of operation and its corresponding answers
With the application service of the application service type of service and the progress information within second cycle of operation and its corresponding application service
Type obtains the Resident Process information and its corresponding application service type, wherein first cycle of operation is different from institute
Stated for second cycle of operation.
In certain embodiments of the present invention, the application clothes of application service corresponding to the determination progress information
Service type includes: the process keyword of application service corresponding to the identification progress information, true according to the process keyword
The application service type of application service corresponding to the fixed progress information;Or, searching application corresponding to the progress information
The configuration file of service, according to the configuration file determine the progress information corresponding to application service application service class
Type.
In certain embodiments of the present invention, described that opening for the application service is determined according to the basic operation information
Dynamic sequence includes: that the corresponding application clothes of the Resident Process information are inquired from provisioning file according to the Resident Process information
The starting information of business;The boot sequence of the application service is determined according to the starting information;Wherein, the starting packet
It includes: application service name information and starting precedence information, or, further comprising start command information.
In certain embodiments of the present invention, described that opening for the application service is determined according to the basic operation information
Dynamic sequence includes: the target query information positioned in provisioning file according to the application service type;According to it is described reside into
Journey information inquires the starting information of the corresponding application service of the Resident Process information from the target query information;According to institute
State the boot sequence that starting information determines the application service;Wherein, the provisioning file is provided with the application clothes in advance
The starting information of business, and by the starting information of application service described in the classification of type of the application service;The starting packet
It includes: application service name information and starting precedence information, or, further comprising start command information.
In certain embodiments of the present invention, the method also includes: detect whether to meet self-starting and execute condition;?
In the case where meeting the self-starting execution condition, the self-starting of the application service is executed
Meanwhile the present invention provides a kind of application service self-starting system, the system comprises: information acquisition module is used
In generating basic operation information during normal operation in operating system;Processing module, for true according to the basic operation information
The boot sequence of the fixed application service;Starting module, for being opened after the operating system is restarted based on the boot sequence
Move the application service.
In certain embodiments of the present invention, the basic operation information includes Resident Process information;The information is adopted
Collect module include: first acquisition unit, for the operating system during normal operation, obtain the operating system first
Progress information in the cycle of operation, the first comparison unit, for comparing process of the operating system within first cycle of operation
Information and the progress information within second cycle of operation obtain the Resident Process information, wherein first cycle of operation is not
It is same as second cycle of operation.
In certain embodiments of the present invention, the basic operation information includes Resident Process information and its corresponding answers
Use service type;The information acquisition module includes: second acquisition unit, for the operating system during normal operation,
Progress information of the operating system within first cycle of operation is obtained, and determines application service corresponding to the progress information
Application service type, the second comparison unit, for compare progress information of the operating system within first cycle of operation and
The application service type of its corresponding application service and the progress information within second cycle of operation and its corresponding application service
Application service type, obtain the Resident Process information and its corresponding application service type, wherein it is described first operation week
Phase is different from second cycle of operation.
In certain embodiments of the present invention, the second acquisition unit includes: the first determining subelement, for identification
The process keyword of application service corresponding to the progress information determines the progress information institute according to the process keyword
The application service type of corresponding application service;Or, second determines subelement, answered corresponding to the progress information for searching
With the configuration file of service, according to the configuration file determine the progress information corresponding to application service application service class
Type.
In certain embodiments of the present invention, the processing module includes: the first boot sequence determination unit, is used for root
The starting information of the corresponding application service of the Resident Process information is inquired from provisioning file according to the Resident Process information,
And the boot sequence of the application service is determined according to the starting information;Wherein, the starting information includes: application service name
Claim information and starting precedence information, or, further comprising start command information.
In certain embodiments of the present invention, the processing module includes: positioning unit, for being taken according to the application
Service type positions the target query information in provisioning file;Second boot sequence determination unit, for according to it is described reside into
Journey information inquires the starting information of the corresponding application service of the Resident Process information from the target query information, and according to
The starting information determines the boot sequence of the application service;Wherein, the provisioning file is provided with the application in advance
The starting information of service, and by the starting information of application service described in the classification of type of the application service;The starting information
It include: application service name information and starting precedence information, or, further comprising start command information.
In certain embodiments of the present invention, the system also includes: starting detection module, for detecting whether meet
Self-starting executes condition, and in the case where meeting the self-starting execution condition, determination can execute the application service
Self-starting.
In addition, the present invention provides a kind of application service self-starting device, including memory and controller, the memory
For storing one or more computer instruction;The controller is for calling and executing one or more computer instruction
Method to realize any one of aforementioned application service self-starting.
The present invention also provides a kind of computer storage medium, it is stored with one or more computer instruction, described one
Or the method that a plurality of computer instruction realizes any one of aforementioned application service self-starting when being executed.
Method of the invention can automatic identification determines and needs application service and its boot sequence of self-starting, and realization is directed to
The self-starting of complicated applications service substantially shortens the processing time of failure, improves the availability of system.Meanwhile side of the invention
Method configuration is easy to use, for the first time after initial configuration, no longer needs to human intervention, and method of the invention is to self-starting strict implement
Admission control, it is highly-safe.
Detailed description of the invention
To facilitate the understanding of the present invention, the present invention is carried out specifically below by way of specific embodiment and in conjunction with attached drawing
It is bright.
Fig. 1 is a kind of flow diagram of the method for application service self-starting of embodiment according to the present invention;
Fig. 2A is a kind of flow diagram of the method for the basic operation information of generation of embodiment according to the present invention;
Fig. 2 B is the flow diagram of the method for the basic operation information of generation of another embodiment according to the present invention;
Fig. 3 A is a kind of application of application service corresponding to the determination progress information of embodiment according to the present invention
The method flow schematic diagram of service type;
Fig. 3 B is answering for application service corresponding to another determination progress information of embodiment according to the present invention
With the flow diagram of the method for service type;
Fig. 4 A is a kind of starting that application service is determined according to the basic operation information of embodiment according to the present invention
The flow diagram of the method for sequence;
Fig. 4 B is that another embodiment according to the present invention according to the basic operation information determines opening for application service
The flow diagram of the method for dynamic sequence;
Fig. 5 is a kind of flow chart of the realization process of the method for illustrative application service self-starting of the invention;
Fig. 6 is a kind of boot sequence table of the realization process of the method for illustrative application service self-starting of the invention
Schematic diagram;
Fig. 7 is a kind of block diagram of application service self-starting system of embodiment according to the present invention;
Fig. 8 A is a kind of block diagram of the information acquisition module of application service self-starting system in Fig. 7;
Fig. 8 B is the block diagram of the information acquisition module of application service self-starting system in another Fig. 7;
Fig. 9 A is a kind of block diagram of the second acquisition unit of information acquisition module in Fig. 8 B;
Fig. 9 B is the block diagram of the second acquisition unit of information acquisition module in another Fig. 8 B;
Figure 10 A is a kind of block diagram of the processing module of application service self-starting system in Fig. 7;
Figure 10 B is the block diagram of the processing module of application service self-starting system in another Fig. 7;
Figure 11 is a kind of block diagram of application service self-starting device of embodiment according to the present invention.
Specific embodiment
It is described in detail to various aspects of the present invention below in conjunction with the drawings and specific embodiments.Wherein, many institute's weeks
Module, unit and its mutual connection, link, communication or the operation known are not shown or do not elaborate.Also, institute
Feature, framework or the function of description can combine in any way in one or more embodiments.Those skilled in the art
Member is it should be appreciated that following various embodiments are served only for the protection scope for example, and is not intended to limit the present invention.May be used also
To be readily appreciated that, module or unit or processing mode in each embodiment described herein and shown in the drawings can by it is various not
It is combined and designs with configuration.
Fig. 1 is a kind of flow diagram of the method for application service self-starting of embodiment according to the present invention, referring to figure
1, this method comprises:
100: generating basic operation information during normal operation in operating system;
102: the boot sequence of application service is determined according to the basic operation information;
104: the application service is started after the operating system is restarted based on the boot sequence.
Wherein, in the present embodiment, operating system refers to that operating system and application service can be normal during normal operation
During operation is to complete to service accordingly.
Optionally, step 102 can execute during normal operation in operating system, can also hold after operating system is restarted
Row.
Optionally, in embodiments of the present invention, basic operation information includes Resident Process information, as shown in Figure 2 A,
Step 100 can be accomplished by the following way:
110: the operating system during normal operation, obtain process of the operating system within first cycle of operation
Information;
112: compare the operating system the progress information in first cycle of operation and within second cycle of operation into
Journey information obtains the Resident Process information.
Wherein, first cycle of operation was different from for second cycle of operation, for example, second cycle of operation can be in the first operation
The history run period before period.
Optionally, in another embodiment of the invention, basic operation information is other than comprising Resident Process information
It can also include application service type corresponding to Resident Process information.In the present embodiment, referring to Fig. 2 B, step 100 can
To be accomplished by the following way:
114: the operating system during normal operation, obtain process of the operating system within first cycle of operation
Information, and determine the application service type of the corresponding application service of the progress information;
116: comparing answering for progress information and its corresponding application service of the operating system within first cycle of operation
With the application service type of service type and progress information and its corresponding application service within second cycle of operation, institute is obtained
State Resident Process information and its corresponding application service type.
Likewise, first cycle of operation was different from for second cycle of operation.
Optionally, in embodiments of the present invention, the corresponding application clothes of progress information can be determined in several ways
The application service type of business.Referring to Fig. 3 A and Fig. 3 B, two kinds of determining methods more practical are provided:
Wherein, as shown in Figure 3A, step 114 may include:
120: identifying the process keyword of application service corresponding to the progress information;
122: the application service type of application service corresponding to the progress information is determined according to the process keyword.
Specifically, judgment rule is as follows:
Table 1
Application service type | Process keyword |
Weblogic | Java ,-Dweblogic.Name= |
NodeManager | Java, NodeManager |
Tuxedo | BBL |
Apache | httpd |
Haproxy | haproxy,-f |
MQ | amqzxma |
NFT | bdetrigger |
SA | sec_agent_server |
JFserver | com.ccb.jfserver.JFServer |
Appmon (application monitoring) | Java, AppmonAgent |
Patrol (Centralized Monitoring tool) | PatrolAgent |
CTM (job scheduling tool) | p_ctmag |
The table show the corresponding relationships between certain applications service type and process keyword.
Optionally, as shown in Figure 3B, step 114 can also be accomplished by the following way:
124: searching the configuration file of application service corresponding to the progress information
126: according to the configuration file determine the progress information corresponding to application service application service type.
Wherein, configuration file is the file that application service generates in installation, operational process.For example, the program bag of installation,
Log etc..
Specifically, for example, Weblogic application service type can by searching under HOME file whether there is bin/
SetDomainEnv.sh file and servers/<ServerName>/ServerName.log file determine.
In the present embodiment, above two determining method can also carry out simultaneously, be believed with more accurate determination process
Cease the application service type of corresponding application service.
It optionally, can also include: record the process while obtaining progress information in step 110 or step 114
The simple starting information of application service corresponding to information.The simple starting information can be starting user, starting time etc., note
Recording format can be with are as follows: " Apply Names=application service type: starting user | the starting time ", example is as follows:
Tools_0=PATROL:patrol | 20170629
Tools_1=APPMON:appmon | 20170629
Illustrate that user patrol started the application service of PATROL type on 06 29th, 2017 in the machine
Tools_0, user appmon started the application service Tools_1 of APPMON type on 06 29th, 2017 in the machine.
Optionally, in embodiments of the present invention, basic operation information includes Resident Process information, or further packet
Application service type corresponding to information containing Resident Process.According to the information category that basic operation information is included, can use
Different methods executes step 102.Referring to Fig. 4 A and Fig. 4 B, provides and determine that the starting of application service is suitable under two kinds of different situations
The method of sequence:
Referring to Fig. 4 A, in this embodiment, basic operation information includes Resident Process information, and step 102 can pass through
Following manner is realized:
130: the corresponding application of the Resident Process information is inquired from provisioning file according to the Resident Process information
The starting information of service;
132: the boot sequence of the application service is determined according to the starting information.
In this embodiment, provisioning file is the file for being provided with the starting information of types of applications service in advance, is opened
Dynamic information includes application service name information, application service type, starting precedence information, start command information etc., records lattice
Formula can be with are as follows: and " application service title: application service type: starting priority: start command: ", example is as follows:
NASCHECK:TOOL:5:sh/home/ap/opscloud/app_auto/service/CommService.sh
NASCHECK START:
APPMON:TOOL:10:sh/home/ap/opscloud/app_auto/service/CommService.sh
APPMON START:
SA:COM:12:sh/home/ap/opscloud/app_auto/service/CommService.sh SA
START:
APP:APP:25:sh/home/ap/opscloud/app_auto/service/CommService.sh APP
START:
Referring to Fig. 4 B, in this embodiment, basic operation information is other than comprising Resident Process information, also comprising resident
The application service type of application service corresponding to progress information, step 102 can also be accomplished by the following way:
134: the target query region in provisioning file is positioned according to the application service type;
135: it is corresponding to inquire the Resident Process information from the target query region according to the Resident Process information
Application service starting information;
136: the boot sequence of the application service is determined according to the starting information.
In this embodiment, provisioning file is provided with the starting information of types of applications service in advance, and by application clothes
The starting information of the classification of type application service of business.Thus, it is possible to which first passing through application service type positions application clothes to be found
It is engaged in the position in provisioning file, locking out target query region (information of different zones constitutes different), then by resident
Progress information inquires the starting information of application service corresponding to Resident Process information in target query region, compared to Fig. 4 A
Shown in method, search efficiency greatly improves.
Hereinafter, referring to Fig. 5, illustrating a kind of illustrative application service of the invention for by taking (SuSE) Linux OS as an example
The realization process of the method for self-starting:
During normal operation:
1. being pre-configured with starting up: starting up is configured in an operating system in advance, in operating system delay machine
It is automatic after restarting to execute " application service self-starting " script.The specific method is as follows:
Last in/etc/rc.d/rc.local file additional applies self-starting script:
sh/home/ap/opscloud/app_auto/service/AutoStartup.sh-run1>/tmp/
AutoStartu p.sh.root.log2>&1。
2. generating basic operation information: in this example, basic operation information is acquired by setting timed task,
It updates and maintenance, the recorded basic information of guarantee completely, effectively, implements step are as follows:
(1) crontab timed task, regular Automatic dispatching execution information capture program, to protect are defined in an operating system
The timeliness and integrality of the basic operation information recorded are demonstrate,proved, executing frequency, generally execution is primary daily;
(2) script is acquired by execution information, obtains system process information, local file is recorded, and combine most
Nearly n times implementing result (default 15 times) carries out data processing, therefrom rejecting abnormalities process, generates more stable Resident Process letter
Breath, the progress information recorded in local file include process name, user, process number etc., and specific format is as follows:
2017062909|4|PROC_NUM|yyc|java|NodeManager|11;
2017062909|4|PROC_NUM|yyc|java|AdminServer|1;
2017062909|4|PROC_NUM|yyc|java|JFServer|1;
(3) according to predefined application type recognition rule, the application service type of system operation is identified, and will be using clothes
Local file is recorded in the simple starting information of business.
After delay machine is restarted:
1. self-starting condition detects: carrying out the detection of self-starting condition, before executing self-starting whether to determine operating system
Meet the condition of application service self-starting.Wherein, self-starting condition may include:
(1) check whether self-starting switch opens (switch, which is mainly realized, artificially controls self-starting), if switch is not
Opening does not execute subsequent start-up operation then;
(2) check whether basic operation information acquires completely, if it is incomplete, or there is dispute information, then it is unsatisfactory for certainly
Entry condition;
(3) it checks and collects whether Resident Process matches with service type, it may be assumed that all Resident Process can incorporate into
In a corresponding application service type.It does not find corresponding application service type if there is Resident Process, then shows to start
Item cannot cover whole Resident Process, be unsatisfactory for using entry condition.
In this example, basic operation information includes the service type of Resident Process information and its corresponding application service,
For condition (2), the acquisition of basic operation information completely i.e.: basic operation information includes at least Resident Process information and its corresponding
The service type of application service.Meanwhile for some special application services, it is also necessary to necessary configuration information is acquired, such as:
To Weblogic application service, the path domain of acquisition Weblogic is also needed;To Haproxy application service, it is also necessary to acquire
It needs to load cfg file when starting;To NodeManager application service, it is also necessary to acquire its path for starting script.
2. determining boot sequence: positioning the position of application service to be found in provisioning file according to application service type
Set, lock out target query region, then by Resident Process information inquire in target query region Resident Process information it is right
The starting information for the application service answered.Starting information is recorded into boot sequence listing file, generates boot sequence list, such as
Shown in Fig. 6.
3. sequence executes starting: starting item by item by the starting priority orders of the application service recorded in boot sequence list
Application service executes an abnormal examination after starting an application service, abnormal if it exists then to be carried out by detection instrument
Abnormal alarm simultaneously exits subsequent execution.
Above-mentioned exception refers to execute self-starting after, the case where application service is unable to operate normally, such as:
(1) it is non-zero to execute return code;
(2) time time-out (being generally set to 300s) is executed, is not responded to;
(3) after the completion of executing, the process of the startup item of corresponding application service is not present;
(4) (the only application service to having green light test-strips) is not tested by green light.
4. health examination: after the completion of all application service self-startings, carrying out health examination to operating system, check operation
Whether system can operate normally.The health examination includes:
(1) based on local Resident Process information is recorded in, check whether Resident Process starts completely.Such as check that discovery is deposited
In the process of having leaked, then abnormal alarm is carried out by monitoring tools;
(2) necessary green light test is carried out, verification operation system and application service are no good for use in fact, pass through in case of abnormal
Monitoring tools carry out abnormal alarm.
Method of the invention can be realized after operating system delay machine, restarting, automatic identification, the starting for determining application service
Content and sequence realize the self-starting for being directed to complicated applications service, substantially shorten the processing time of failure, improve the available of system
Rate.Meanwhile method configuration of the invention is easy to use, for the first time after initial configuration, no longer needs to human intervention, and side of the invention
Method is to self-starting strict implement admission control, it may be assumed that only meets execution condition and just further executes corresponding operation, safety
It is high.
Fig. 7 is a kind of block diagram of application service self-starting system of embodiment according to the present invention, referring to Fig. 7, using clothes
Business self-starting system 1 includes information acquisition module 10, processing module 20 and starting module 30.
Wherein, information acquisition module 10 is used to generate basic operation information during normal operation in operating system;Handle mould
Block 20 is used to determine the boot sequence of the application service according to the basic operation information;Starting module 30 is used for based on described
Boot sequence starts the application service after the operating system is restarted.
Optionally, referring to Fig. 8 A, in a kind of implementation of embodiments of the present invention, information acquisition module 10 is wrapped
Include: first acquisition unit 12, for the operating system during normal operation, obtain the operating system first operation week
Progress information in phase;First comparison unit 14, for comparing progress information of the operating system within first cycle of operation
With the progress information within second cycle of operation, the Resident Process information is obtained;Wherein, first cycle of operation is different from
Second cycle of operation.
Optionally, referring to Fig. 8 B, in another implementation of embodiments of the present invention, information acquisition module 10 is wrapped
Include: second acquisition unit 16, for the operating system during normal operation, obtain the operating system first operation week
Progress information in phase, and determine the application service type of application service corresponding to the progress information;Second comparison unit
18, for comparing the application service of progress information and its corresponding application service of the operating system within first cycle of operation
The application service type of type and progress information and its corresponding application service within second cycle of operation obtains described resident
Progress information and its corresponding application service type;Likewise, first cycle of operation is different from second cycle of operation.
Specifically, in a kind of implementation of embodiments of the present invention, second acquisition unit 16 is wrapped referring to Fig. 9 A
Include: first determines subelement 160, for identification the process keyword of application service corresponding to the progress information, according to institute
The process keyword of stating determines the application service type of application service corresponding to the progress information;Alternatively, second determines that son is single
Member 162, for searching the configuration file of application service corresponding to the progress information, according to configuration file determination
The application service type of application service corresponding to progress information.Optionally, second acquisition unit 16 can include first simultaneously
Determine that subelement 160 and second determines subelement 162.
Optionally, 0A referring to Fig.1, in a kind of implementation of embodiments of the present invention, processing module 20 includes:
One boot sequence determination unit 22 is believed for inquiring the Resident Process from provisioning file according to the Resident Process information
The starting information of corresponding application service is ceased, and determines the boot sequence of the application service according to the starting information.Wherein,
The starting information includes: application service name information and starting precedence information, or, further comprising start command letter
Breath.
Optionally, 0B referring to Fig.1, in another implementation of embodiments of the present invention, processing module 20 includes:
Positioning unit 24, for positioning the target query information in provisioning file according to the application service type;Second starting is suitable
Sequence determination unit 26, for inquiring the Resident Process information from the target query information according to the Resident Process information
The starting information of corresponding application service, and according to the boot sequence for starting information and determining the application service.Wherein, institute
The starting information that provisioning file is provided with the application service in advance is stated, and is answered by described in the classification of type of the application service
With the starting information of service;The starting information includes: application service name information and starting precedence information, or, further
It further include start command information.
Optionally, in a kind of implementation of embodiments of the present invention, application service self-starting system can also be wrapped
Starting detection module is included, for detecting whether meeting self-starting executes condition, and in the feelings for meeting the self-starting execution condition
Under condition, determination can execute the self-starting of the application service.
Optionally, the present invention provides a kind of application service self-starting device, referring to Fig.1 1, the application service self-starting 2
Including memory 40, for storing one or more computer instruction;Controller 50, for calling and executing described one or more
Computer instruction is to realize the method for safety monitoring traded provided by aforementioned embodiments of the present invention or implementation.It can
Selection of land, in a kind of implementation of embodiment of the present invention, the safety monitoring device can also include for carrying out data
The input/output interface of communication.
The present invention also provides a kind of computer storage mediums, are stored with one or more computer instruction, for holding
The method for the application service self-starting that aforementioned embodiments of the present invention or implementation provide is realized when row.
Although illustrating some embodiments herein, it, can be right under the premise of not departing from essence of the present invention
These embodiments carry out various modifications, and all these deformations still fall within design of the invention, and fall into right of the present invention and want
Protection scope defined by asking.
Specific embodiment disclosed herein is only used for illustrating the present invention, to those skilled in the art,
Obviously can carry out various modifications according to the teaching of this article, can using it is various it is equivalent by the way of implement the present invention, therefore, this hair
Bright specific embodiment disclosed above is only exemplary, and protection scope is not by construction or design disclosed herein
Details is limited, unless being otherwise noted in the claims.Therefore, specific illustrative embodiment disclosed above can carry out
Various replacements, combination or modification, all deformations are both fallen in range disclosed herein.It is not specifically disclosed herein lacking
Any element or in the case where lacking optional component disclosed herein, disclosed application service self-starting exemplified here
Method, system, device and storage medium can be still appropriately carried out.All numerical value and range disclosed above can also carry out centainly
Variation.Whenever disclosing the numberical range with lower and upper limit, fall into any numerical value within the scope of this and it is any by comprising
Range is all specifically disclosed.Specifically, any range of numerical value disclosed herein can be regarded as listing being included in
Any value and range in broader numerical.Equally, unless applicant is explicitly and clearly defined otherwise, in claim
Term there is their clear, common meaning.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
The mode of software combination hardware platform is realized.Based on this understanding, technical solution of the present invention makes tribute to background technique
That offers can be embodied in the form of software products in whole or in part, which can store is situated between in storage
In matter, such as ROM/RAM, magnetic disk, CD, including some instructions use is so that a computer equipment (can be individual calculus
Machine, server or network equipment etc.) execute side described in certain parts of each embodiment of the present invention or embodiment
Method.
In addition, the quantity of the component in claims includes one or at least one, unless otherwise indicated.If this hair
Word or term in bright in other documents usage or meaning there are inconsistent, then should be to be with defined in the present invention
It is quasi-.
Claims (16)
1. a kind of method of application service self-starting, which is characterized in that the described method includes:
Basic operation information is generated during normal operation in operating system;
The boot sequence of application service is determined according to the basic operation information;
Start the application service after the operating system is restarted based on the boot sequence.
2. the method as described in claim 1, which is characterized in that
The basis operation information includes Resident Process information;
It is described to generate basic operation information during normal operation in operating system and include:
The operating system during normal operation, obtain progress information of the operating system within first cycle of operation,
The operating system is compared in the progress information in first cycle of operation and the progress information within second cycle of operation, is obtained
To the Resident Process information,
Wherein, first cycle of operation is different from second cycle of operation.
3. the method as described in claim 1, which is characterized in that
The basis operation information includes Resident Process information and its corresponding application service type;
It is described to generate basic operation information during normal operation in operating system and include:
The operating system during normal operation, obtain progress information of the operating system within first cycle of operation, and
Determine the application service type of the corresponding application service of the progress information,
Compare the application service class of progress information and its corresponding application service of the operating system within first cycle of operation
The application service type of type and progress information and its corresponding application service within second cycle of operation, obtain it is described reside into
Journey information and its corresponding application service type,
Wherein, first cycle of operation is different from second cycle of operation.
4. method as claimed in claim 3, which is characterized in that application service corresponding to the determination progress information
Application service type includes:
Identify the process keyword of application service corresponding to the progress information,
The application service type of application service corresponding to the progress information is determined according to the process keyword;
Or, the configuration file of application service corresponding to the progress information is searched,
According to the configuration file determine the progress information corresponding to application service application service type.
5. method according to claim 2, which is characterized in that described to determine that the application takes according to the basic operation information
The boot sequence of business includes:
Opening for the corresponding application service of Resident Process information is inquired from provisioning file according to the Resident Process information
Dynamic information;
The boot sequence of the application service is determined according to the starting information;
Wherein, the starting information includes: application service name information and starting precedence information, is opened or, further comprising
Dynamic command information.
6. method as claimed in claim 3, which is characterized in that described to determine that the application takes according to the basic operation information
The boot sequence of business includes:
The target query information in provisioning file is positioned according to the application service type;
The corresponding application clothes of the Resident Process information are inquired from the target query information according to the Resident Process information
The starting information of business;
The boot sequence of the application service is determined according to the starting information;
Wherein, the provisioning file is provided with the starting information of the application service in advance, and presses the class of the application service
Type is classified the starting information of the application service;
The starting information includes: application service name information and starting precedence information, or, further comprising start command
Information.
7. method as claimed in any one of claims 1-3, which is characterized in that the method also includes:
Detect whether that meeting self-starting executes condition;
In the case where meeting the self-starting execution condition, the self-starting of the application service is executed.
8. a kind of application service self-starting system, which is characterized in that the system comprises:
Information acquisition module, for generating basic operation information during normal operation in operating system;
Processing module, for determining the boot sequence of the application service according to the basic operation information;
Starting module, for starting the application service after the operating system is restarted based on the boot sequence.
9. system as claimed in claim 8, which is characterized in that
The basis operation information includes Resident Process information;
The information acquisition module includes:
First acquisition unit, for the operating system during normal operation, obtain the operating system first operation week
Progress information in phase,
First comparison unit, for comparing progress information of the operating system within first cycle of operation and in the second operation week
Progress information in phase obtains the Resident Process information,
Wherein, first cycle of operation is different from second cycle of operation.
10. system as claimed in claim 8, which is characterized in that
The basis operation information includes Resident Process information and its corresponding application service type;
The information acquisition module includes:
Second acquisition unit, for the operating system during normal operation, obtain the operating system first operation week
Progress information in phase, and determine the application service type of application service corresponding to the progress information,
Second comparison unit, for comparing progress information and its corresponding application of the operating system within first cycle of operation
The application service class of the application service type of service and the progress information within second cycle of operation and its corresponding application service
Type obtains the Resident Process information and its corresponding application service type,
Wherein, first cycle of operation is different from second cycle of operation.
11. system as claimed in claim 10, which is characterized in that the second acquisition unit includes:
First determines subelement, for identification the process keyword of application service corresponding to the progress information, according to described
Process keyword determines the application service type of application service corresponding to the progress information;
Or, second determines subelement, for searching the configuration file of application service corresponding to the progress information, according to described
Configuration file determines the application service type of application service corresponding to the progress information.
12. system as claimed in claim 9, which is characterized in that the processing module includes:
First boot sequence determination unit, for according to the Resident Process information inquired from provisioning file it is described reside into
The starting information of the corresponding application service of journey information, and according to the boot sequence for starting information and determining the application service;
Wherein, the starting information includes: application service name information and starting precedence information, is opened or, further comprising
Dynamic command information.
13. system as claimed in claim 10, which is characterized in that the processing module includes:
Positioning unit, for positioning the target query information in provisioning file according to the application service type;
Second boot sequence determination unit, described in being inquired from the target query information according to the Resident Process information
The starting information of the corresponding application service of Resident Process information, and according to the starting for starting information and determining the application service
Sequentially;
Wherein, the provisioning file is provided with the starting information of the application service in advance, and presses the class of the application service
Type is classified the starting information of the application service;
The starting information includes: application service name information and starting precedence information, or, further comprising start command
Information.
14. the system as described in any one of claim 8-10, which is characterized in that the system also includes:
Start detection module, for detecting whether meeting self-starting executes condition, and executes condition meeting the self-starting
In the case of, determination can execute the self-starting of the application service.
15. a kind of application service self-starting device, including memory and controller, which is characterized in that
The memory is for storing one or more computer instruction;
The controller is realized for calling and executing one or more computer instruction as appointed in claim 1-7
Method described in one.
16. a kind of computer storage medium is stored with one or more computer instruction, which is characterized in that described one or more
Computer instruction realizes such as method of any of claims 1-7 when being executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810573673.4A CN109086094B (en) | 2018-06-06 | 2018-06-06 | Method, system, device and storage medium for self-starting of application service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810573673.4A CN109086094B (en) | 2018-06-06 | 2018-06-06 | Method, system, device and storage medium for self-starting of application service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109086094A true CN109086094A (en) | 2018-12-25 |
CN109086094B CN109086094B (en) | 2021-07-06 |
Family
ID=64839428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810573673.4A Active CN109086094B (en) | 2018-06-06 | 2018-06-06 | Method, system, device and storage medium for self-starting of application service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109086094B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427629A (en) * | 2020-03-30 | 2020-07-17 | 北京梧桐车联科技有限责任公司 | Application starting method and device, vehicle equipment and storage medium |
CN112860338A (en) * | 2021-01-29 | 2021-05-28 | 中国农业银行股份有限公司 | Software starting method and device |
CN112988281A (en) * | 2021-04-25 | 2021-06-18 | 浙江口碑网络技术有限公司 | Application starting method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360885A (en) * | 2014-11-18 | 2015-02-18 | 深圳市中兴移动通信有限公司 | Start control method, start control device and start control terminal |
CN106648704A (en) * | 2017-01-05 | 2017-05-10 | 广东欧珀移动通信有限公司 | Process management method and device and mobile terminal |
CN107748698A (en) * | 2017-11-21 | 2018-03-02 | 广东欧珀移动通信有限公司 | Start control method, device, storage medium and the terminal of application with broadcast mode |
-
2018
- 2018-06-06 CN CN201810573673.4A patent/CN109086094B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360885A (en) * | 2014-11-18 | 2015-02-18 | 深圳市中兴移动通信有限公司 | Start control method, start control device and start control terminal |
CN106648704A (en) * | 2017-01-05 | 2017-05-10 | 广东欧珀移动通信有限公司 | Process management method and device and mobile terminal |
CN107748698A (en) * | 2017-11-21 | 2018-03-02 | 广东欧珀移动通信有限公司 | Start control method, device, storage medium and the terminal of application with broadcast mode |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427629A (en) * | 2020-03-30 | 2020-07-17 | 北京梧桐车联科技有限责任公司 | Application starting method and device, vehicle equipment and storage medium |
CN111427629B (en) * | 2020-03-30 | 2023-03-17 | 北京梧桐车联科技有限责任公司 | Application starting method and device, vehicle equipment and storage medium |
CN112860338A (en) * | 2021-01-29 | 2021-05-28 | 中国农业银行股份有限公司 | Software starting method and device |
CN112860338B (en) * | 2021-01-29 | 2024-06-11 | 中国农业银行股份有限公司 | Software starting method and device |
CN112988281A (en) * | 2021-04-25 | 2021-06-18 | 浙江口碑网络技术有限公司 | Application starting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109086094B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4318643B2 (en) | Operation management method, operation management apparatus, and operation management program | |
CN109658181A (en) | Information processing method and device | |
CN112346829B (en) | Method and equipment for task scheduling | |
US8756588B2 (en) | Contextual exception management in multi-tenant systems | |
US8346748B1 (en) | Environment classification and service analysis | |
CN109086094A (en) | Method, system, device and the storage medium of application service self-starting | |
US10891129B1 (en) | Decentralized development operations blockchain system | |
JP5687656B2 (en) | Data converter | |
CN110221933A (en) | Aacode defect assists restorative procedure and system | |
CN110083581A (en) | A kind of method, apparatus, storage medium and the computer equipment of log retrospect | |
US20180336477A1 (en) | Information processing apparatus and non-transitory computer readable medium | |
US9110764B2 (en) | User feedback method and system for business suite customization | |
JP6855364B2 (en) | Log collection system and program | |
US10466984B2 (en) | Identifying and associating computer assets impacted by potential change to a particular computer asset | |
CN115114275A (en) | Data acquisition method, device and medium | |
CN114064510A (en) | Function testing method and device, electronic equipment and storage medium | |
JP2004185455A (en) | Method for supporting audit on information security policy and device | |
CN111355614A (en) | Abnormal information positioning method and device suitable for payment equipment log | |
CN113094078B (en) | Security detection method, device, equipment and medium | |
CN113468155B (en) | Question data processing method and device | |
CN112988457B (en) | Data backup method, device, system and computer equipment | |
CN111338752B (en) | Container adjusting method and device | |
CN112364121B (en) | Automatic questionnaire PDF creation method and device, storage medium and computer equipment | |
CN114169176A (en) | Event failure risk determination method and device, storage medium and electronic device | |
CN116866295A (en) | Mail-based cooperation progress generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |