JPH0830347A - Automatic starting device - Google Patents

Automatic starting device

Info

Publication number
JPH0830347A
JPH0830347A JP6166965A JP16696594A JPH0830347A JP H0830347 A JPH0830347 A JP H0830347A JP 6166965 A JP6166965 A JP 6166965A JP 16696594 A JP16696594 A JP 16696594A JP H0830347 A JPH0830347 A JP H0830347A
Authority
JP
Japan
Prior art keywords
user
registration file
time
started
execution
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
Application number
JP6166965A
Other languages
Japanese (ja)
Other versions
JP3649756B2 (en
Inventor
Toshiyuki Tsukamoto
俊之 塚本
Osamu Iijima
理 飯嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP16696594A priority Critical patent/JP3649756B2/en
Publication of JPH0830347A publication Critical patent/JPH0830347A/en
Application granted granted Critical
Publication of JP3649756B2 publication Critical patent/JP3649756B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Power Sources (AREA)

Abstract

PURPOSE:To automate the start/end processing of a user process or the like and to easily perform change it corresponding to the purpose of use by automatically starting the processes, which are set in a user processing register file, at prescribed time intervals. CONSTITUTION:A user processing register file 5 is provided to previously register plural process names, time and right and the information required for controlling processes is set in a control table 3. After the lapse of set time from the start of a process (user process) 4 equipped with the process name extracted from the user processing register file 5, a process preparing means 2 repeats the extraction of the next process name and the start of that process or applies the right set to the started process. Thus, the start/end processing of the user process of a computer 1 or the like can be automated, and the user process to be started at the time of start or end, the order or the time interval can be easily changed corresponding to the purpose of use.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、処理の自動起動装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a process automatic starting device.

【0002】[0002]

【従来の技術】従来、計算機は、電源投入時にシステム
を外部記憶装置から主記憶装置にローディングおよび各
種初期化を行い、システムが使用できる状態に立ち上げ
た後、更に、予め指定しておいた利用者プロセスを一義
的に起動して実際の運用を開始できる状態にしていた。
また、終了時にも、予め指定しておいた利用者プロセス
を一義的に起動して終了処理を行った後に電源のシャッ
トダウンなどしていた。
2. Description of the Related Art Conventionally, a computer, when the power is turned on, loads the system from the external storage device to the main storage device and performs various initializations, starts up the system so that it can be used, and then specifies it in advance. The user process was uniquely activated so that the actual operation could be started.
In addition, at the time of termination, a user process designated in advance is uniquely activated to perform termination processing, and then the power is shut down.

【0003】[0003]

【発明が解決しようとする課題】このため、計算機の起
動時に適切なプロセスを適切な順序で適切な時間間隔を
於いて順次起動したり、更に、終了時にも適切なプロセ
スを適切な順序で適切な時間間隔を於いて順次起動して
終了処理した後に電源をシャットダウンしたりできない
と共にこれらの起動するプロセスの順序や時間間隔を顧
客先の用途に応じて任意かつ簡易に変更できないという
問題があった。
Therefore, when the computer is started, the appropriate processes are sequentially started in the appropriate order at the appropriate time intervals, and at the end, the appropriate processes are appropriately started in the appropriate order. There is a problem that it is not possible to shut down the power after sequentially starting and ending at different time intervals and changing the order and time interval of these starting processes arbitrarily and easily according to the customer's application. .

【0004】本発明は、これらの問題を解決するため、
利用者処理登録ファイルを設けて計算機の立ち上げ時や
終了時などに利用者処理登録ファイルに設定されたプロ
セスを設定された順序で設定された時間間隔で自動起動
および設定されていた権限を付与し、計算機の利用者プ
ロセスの立ち上げ処理および終了処理などの自動化を図
ると共に用途に応じて簡易に変更可能にすることを目的
としている。
The present invention solves these problems.
A user process registration file is provided to automatically start the processes set in the user process registration file at the time of starting or ending the computer in the set order and at the time interval set and with the set privileges. However, the purpose is to automate the start-up processing and termination processing of the user process of the computer and to make it easy to change according to the application.

【0005】[0005]

【課題を解決するための手段】図1は、本発明の原理ブ
ロック図を示す。図1において、計算機1は、利用者プ
ロセスを起動して各種処理を行うものであって、プロセ
ス作成手段2、制御テーブル3、および利用者プロセス
4などから構成されるものである。
FIG. 1 shows a block diagram of the principle of the present invention. In FIG. 1, a computer 1 activates a user process to perform various processes, and is composed of a process creating unit 2, a control table 3, a user process 4, and the like.

【0006】プロセス作成手段2は、利用者処理登録フ
ァイル5から取り出したプロセス名のプロセス(利用者
プロセス4)を起動した後、設定されていた時間経過後
に、次のプロセス名を取り出してプロセスを起動するこ
とを繰り返したり、起動したプロセスに設定されていた
権限(実行UID)を付与したりするものである。
After the process having the process name (user process 4) fetched from the user process registration file 5 is started, the process creating means 2 fetches the next process name after the set time elapses and executes the process. The activation is repeated, and the authority (execution UID) set in the activated process is given.

【0007】制御テーブル3は、プロセスを制御するた
めに必要な情報を設定するものである。利用者プロセス
4は、起動されたプロセスであって、各種業務を行うプ
ロセスである。
The control table 3 is for setting information necessary for controlling the process. The user process 4 is a started process and is a process for performing various tasks.

【0008】利用者処理登録ファイル5は、プロセス
名、時間および権限(実行UID)を登録するものであ
る。ステータスファイル6は、終了フラグなどを設定し
て保存するものである。
The user process registration file 5 is for registering a process name, time and authority (execution UID). The status file 6 sets and saves an end flag and the like.

【0009】電源制御装置7は、計算機1の電源をON
/OFFするものである。
The power controller 7 turns on the power of the computer 1.
/ OFF.

【0010】[0010]

【作用】本発明は、図1に示すように、プロセス作成手
段2が利用者処理登録ファイル5のプロセス名のプロセ
スを起動した後、設定されていた時間経過後に、次のプ
ロセス名のプロセスを起動することを繰り返し、処理を
行うようにしている。
According to the present invention, as shown in FIG. 1, after the process creation means 2 starts the process having the process name of the user process registration file 5, the process having the next process name is executed after the preset time elapses. The process is repeated by starting up.

【0011】また、プロセス作成手段2が利用者処理登
録ファイル5のプロセス名のプロセスの権限を、登録さ
れている権限としてプロセスを作成して起動し実行させ
るようにしる。
Further, the process creating means 2 creates the process with the authority of the process having the process name of the user process registration file 5 as the registered authority, and activates and executes the process.

【0012】従って、利用者処理登録ファイル5を設け
て計算機1の利用者プロセスの立ち上げ時や終了時など
に利用者処理登録ファイル5に設定されたプロセスを設
定された順序で設定された時間間隔で自動起動および設
定されていた権限を付与することにより、計算機1の利
用者プロセスの立ち上げ処理および終了処理などの自動
化を図ることが可能となると共に用途に応じて簡易に変
更、更にプロセス毎に任意の権限を付与することが可能
となる。
Therefore, the user process registration file 5 is provided to set the processes set in the user process registration file 5 in the set order at the time of starting or ending the user process of the computer 1. It is possible to automate the startup process and termination process of the user process of the computer 1 by giving the authority that was automatically started and set at intervals, and easily change it according to the purpose. It is possible to grant arbitrary authority for each.

【0013】[0013]

【実施例】次に、図2から図6を用いて本発明の実施例
の構成および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS.

【0014】図2は、本発明の全体動作説明フローチャ
ートを示す。これは、図1の構成の全体の動作説明フロ
ーチャートである。図2において、S1は、利用者処理
登録する。これは、後述する例えば図3の(a)の利用
者処理登録ファイル5に示すように、プロセス名に対応
づけて次の処理起動までの待ち時間およびプロセスの実
行UID(プロセスの権限)を登録する。これにより、
利用者が予め通常立ち上げ時、あるいは通常終了時に使
う利用者処理登録ファイル5を予め登録できたこととな
る。
FIG. 2 shows a flowchart for explaining the overall operation of the present invention. This is a flowchart for explaining the overall operation of the configuration of FIG. In FIG. 2, S1 is a user process registration. This is to register the waiting time until the next process start and the process execution UID (process authority) in association with the process name, as shown in the user process registration file 5 of FIG. To do. This allows
This means that the user can previously register the user process registration file 5 to be used at the time of normal startup or at the time of normal termination.

【0015】S2は、利用者処理起動依頼を受け付け
る。S3は、ステータスファイル6から終了フラグを読
み込む。これは、後述する図4に示すように、計算機1
の終了時にそのときの状態を終了フラグ61に設定して
保存しておいたので、当該終了フラグ61を読み込み、
計算機1の終了時の状態を認識する。例えば終了依頼に
対応して終了、あるいは停電に対応して終了した状態な
どを認識する。この計算機1の終了時の状態に対応した
利用者処理登録ファイル5を使って立ち上げ処理を行
う。
In step S2, a user process activation request is accepted. In S3, the end flag is read from the status file 6. This is the computer 1 as shown in FIG.
At the end of, the state at that time was set and saved in the end flag 61, so the end flag 61 is read,
Recognize the state at the end of the computer 1. For example, it recognizes a state in which it is finished in response to an end request or is finished in response to a power failure. The startup process is performed using the user process registration file 5 corresponding to the state at the end of the computer 1.

【0016】S4は、終了フラグに応じた処理の読み込
みを行う。これは、S3で読み込んだ終了フラグ61で
判明した状態(終了依頼に対応して終了、停電に対応し
て終了などの状態)に対応した利用者処理登録ファイル
5を選択し、この選択した利用者処理登録ファイル5を
読み込む。
In step S4, the process corresponding to the end flag is read. This is performed by selecting the user processing registration file 5 corresponding to the state (the state such as ending in response to an end request and ending in response to a power failure) found by the end flag 61 read in S3, and the selected use The user process registration file 5 is read.

【0017】S5は、利用者プロセス1を起動する。こ
れは、S4で読み込んだ利用者処理登録ファイル5の先
頭から利用者プロセス1を取り出して起動する。この起
動の際、システムのアカウント(システムが持つ権限、
通常な全ての資源を利用可能)で起動処理を実行する。
In step S5, the user process 1 is activated. This starts the user process 1 by taking out the user process 1 from the head of the user process registration file 5 read in S4. At the time of this startup, the system account (the authority that the system has,
All normal resources can be used) and start process is executed.

【0018】S6は、プロセスの実行UIDに変更す
る。これは、利用者処理登録ファイル5に設定されてい
たプロセスに対応する実行UID(権限)を取り出し、
起動したプロセスに付与し、使用可能な資源を制限す
る。これにより、起動されたプロセスは、実行UIDが
持つ権限のもとで、資源を使用して処理を独立に実行す
る。
In step S6, the execution UID of the process is changed. This takes out the execution UID (authority) corresponding to the process set in the user process registration file 5,
It is given to the started process and the usable resources are limited. As a result, the activated process independently executes the process using the resource under the authority of the execution UID.

【0019】S7は、t1秒経過後に次のステップのS
8に進む。これは、利用者処理登録ファイル5に設定さ
れていた時間t1を経過後に次のプロセスを起動するた
めにS8に進む。
S7 is the next step S after the lapse of t1 seconds.
Proceed to 8. This proceeds to S8 to activate the next process after the time t1 set in the user process registration file 5 has elapsed.

【0020】S8は、最終プロセスか判別する。YES
の場合には、全てのプロセスの起動を終了したので、S
9で運用を開始する。一方、NOの場合には、全てのプ
ロセスを起動していないと判明したので、S5に戻り繰
り返し、利用者処理登録ファイル5に登録されている次
のプロセスを起動、実行UID付与することを繰り返
す。
In step S8, it is determined whether it is the final process. Yes
In the case of, since the start of all the processes has finished, S
Operation starts at 9. On the other hand, in the case of NO, since it is determined that all the processes are not activated, the process returns to S5 and is repeated, and the process of activating the next process registered in the user process registration file 5 and assigning the execution UID are repeated. .

【0021】以上のS2からS9によって、利用者処理
起動指示に対応して、ステータスファイル6から読み込
んだ終了フラグ61で判明した終了時の状態に対応した
利用者処理登録ファイル5を読み込み、この利用者処理
登録ファイル5の先頭のプロセスから順次起動、実行U
IDを付与、設定されている時間経過後に次のプロセス
を起動、実行UIDを付与することを繰り返し、全ての
プロセスを起動する。これらにより、利用者処理登録フ
ァイル5にプロセス名、時間、実行UIDを設定すると
いう簡単な操作のみで、自動的にプロセス起動、実行U
ID(権限)の付与、時間経過後に次のプロセス起動、
実行UDI(権限)の付与を繰り返させることが可能と
なると共にエンドユーザの用途に応じて任意のプロセス
を任意の組み合わせで任意の時間間隔、権限などを設定
して自動的に起動させ、計算機1の利用者プロセスを立
ち上げることが可能となった。
Through the above steps S2 to S9, the user process registration file 5 corresponding to the end state found from the end flag 61 read from the status file 6 is read in response to the user process activation instruction, and the user process registration file 5 is used. Sequential startup and execution U from the first process of the user process registration file 5
All processes are started by repeating the process of assigning an ID, activating the next process after the elapse of the set time, and assigning the execution UID. With these, process activation, execution U is automatically performed only by simple operation of setting the process name, time, and execution UID in the user process registration file 5.
ID (authority) is given, next process is started after a lapse of time,
Execution UDI (authority) can be repeatedly given, and any process can be automatically started by setting any time interval, any privilege, etc. in any combination according to the end user's application. It became possible to launch the user process of.

【0022】S10は、利用者処理の終了依頼を受け付
ける。S11は、終了依頼に応じた処理の読み込みを行
う。これは、S10で終了依頼に応じた状態(正常な終
了依頼、停電に対応した終了依頼など)に応じた利用者
処理登録ファイル5を選択し、この選択した利用者処理
登録ファイル5を読み込む。
In step S10, a user processing end request is accepted. In step S11, the process corresponding to the end request is read. In S10, the user processing registration file 5 is selected according to the status corresponding to the termination request (normal termination request, termination request corresponding to power failure, etc.), and the selected user processing registration file 5 is read.

【0023】S12は、利用者プロセス1を起動する。
これは、S11で読み込んだ利用者処理登録ファイル5
の先頭から利用者プロセス1を取り出して起動する。こ
の起動の際、システムのアカウント(システムが持つ権
限、通常な全ての資源を利用可能)で起動処理を実行す
る。
In step S12, the user process 1 is activated.
This is the user process registration file 5 read in S11.
The user process 1 is taken out from the beginning of and is started. At the time of this activation, the activation process is executed with the system account (privileges possessed by the system, all normal resources can be used).

【0024】S13は、プロセスの実行UIDに変更す
る。これは、利用者処理登録ファイル5に設定されてい
たプロセスに対応する実行UID(権限)を取り出し、
起動したプロセスに付与し、使用可能な資源を制限す
る。これにより、起動されたプロセスは、実行UIDが
持つ権限のもとで、資源を使用して処理を独立に実行す
る。
In step S13, the execution UID of the process is changed. This takes out the execution UID (authority) corresponding to the process set in the user process registration file 5,
It is given to the started process and the usable resources are limited. As a result, the activated process independently executes the process using the resource under the authority of the execution UID.

【0025】S14は、t1秒経過後に次のステップの
S15に進む。これは、利用者処理登録ファイル5に設
定されていた時間t1経過後に次のプロセスを起動する
ためにS15に進む。
In S14, after t1 seconds have elapsed, the process proceeds to S15 of the next step. This proceeds to S15 to activate the next process after the time t1 set in the user process registration file 5 has elapsed.

【0026】S15は、最終プロセスか判別する。YE
Sの場合には、全てのプロセスの起動を終了したので、
S16で電源をシャットダウンする。一方、NOの場合
には、全てのプロセスを起動していないと判明したの
で、S12に戻り繰り返し、利用者処理登録ファイル5
に登録されている次のプロセスを起動、実行UID付与
することを繰り返す。
In step S15, it is determined whether it is the final process. YE
In the case of S, since the start of all processes has been completed,
The power supply is shut down in S16. On the other hand, in the case of NO, since it is determined that all the processes have not been activated, the process returns to S12 and is repeated, and the user process registration file 5
The next process registered in is started and the execution UID is given repeatedly.

【0027】以上のS10からS16によって、利用者
処理終了依頼に対応して、終了依頼(正常な終了依頼、
停電による終了依頼など)に対応した利用者処理登録フ
ァイル5を読み込み、この利用者処理登録ファイル5の
先頭のプロセスから順次起動、実行UIDを付与、設定
されている時間経過後に次のプロセスを起動、実行UI
Dを付与することを繰り返し、全てのプロセスを起動す
る。これらにより、利用者処理登録ファイル5にプロセ
ス名、時間、実行UIDを設定するという簡単な操作の
みで、自動的にプロセス起動、実行UID(権限)の付
与、時間経過後に次のプロセス起動、実行UID(権
限)の付与を繰り返させることが可能となると共にエン
ドユーザの用途に応じて任意のプロセスを任意の組み合
わせで任意の時間間隔、権限に設定して自動的に起動さ
せ、計算機1の利用者プロセスの終了処理を実行させて
シャットダウンすることが可能となった。
By the above S10 to S16, in response to the user processing end request, the end request (normal end request,
The user process registration file 5 corresponding to a termination request due to a power outage, etc. is read, the processes are sequentially started from the first process of the user process registration file 5, an execution UID is given, and the next process is started after the set time elapses. , Run UI
The process of giving D is repeated to start all processes. With these, the process start, the execution UID (authority) is automatically given, and the next process is started and executed after a lapse of time by only a simple operation of setting the process name, time, and execution UID in the user process registration file 5. It becomes possible to repeat the assignment of UID (authority) and at the same time, according to the end user's use, any process can be automatically started by setting any time interval and authority in any combination and using the computer 1. It has become possible to execute the termination process of the user process and shut down.

【0028】図3は、本発明の利用者処理登録ファイル
例を示す。図3の(a)は、通常立ち上げ時の利用者処
理登録ファイル5の例を示す。これは、図2のS3で読
み込んだ終了フラグ61の状態から通常立ち上げのとき
の利用者登録ファイル5と選択されたときに、S4で読
み込むときの利用者処理登録ファイル5の例である。こ
の通常立ち上げ時の利用者処理登録ファイル5には、図
示のように、 ・プロセス名 ・次の処理起動までの待時間t ・プロセスの実行UID を組にして、起動する順番に登録する。ここで、プロセ
ス名は、起動するプロセス名を表す。次の処理起動まで
の待時間tは、次のプロセスを起動するまでの時間間隔
tを表す。プロセスの実行UIDは、起動したプロセス
に付与する権限(実行UID)を表す。プロセスを起動
するときは、プロセス作成手段2がシステムの持つ権限
(通常は全ての資源を使用できる権限を持つ)を使って
必要な資源を確保(例えばメモリを確保)してプロセス
を起動し、起動したプロセスに実行UIDを付与してお
く。この実行UIDを付与されて起動されたプロセス
は、実行UIDで決まる権限を使って資源の確保やデー
タベースをアクセスしたりする。これにより、起動した
プロセスが使用できる資源を制限できる。
FIG. 3 shows an example of the user processing registration file of the present invention. FIG. 3A shows an example of the user processing registration file 5 at the time of normal startup. This is an example of the user process registration file 5 read in S4 when the user registration file 5 for normal startup is selected from the state of the end flag 61 read in S3 of FIG. In the user process registration file 5 at the time of normal startup, as shown in the figure, the process name, the waiting time t until the next process is started, and the process execution UID are registered as a set and registered in the order of starting. Here, the process name represents the name of the process to be activated. The waiting time t until the start of the next process represents the time interval t until the start of the next process. The process execution UID represents the authority (execution UID) given to the activated process. When starting a process, the process creating means 2 uses the system's authority (usually has the authority to use all resources) to secure necessary resources (for example, to secure memory) and activate the process. An execution UID is given to the started process. The process started by being given this execution UID secures resources and accesses the database using the authority determined by the execution UID. This limits the resources available to the started process.

【0029】図3の(b)は、通常終了時の利用者処理
登録ファイル5の例を示す。これは、図2のS10で終
了依頼の内容が“通常終了”の場合のものである。この
通常終了時の利用者処理登録ファイル5には、図示のよ
うに、 ・プロセス名 ・次の処理起動までの待時間t ・プロセスの実行UID を組にして起動する順番に登録すると共に、 ・シャットダウン実行の有無 ・システム停止までの時間間隔T ・その他 を登録する。ここで、プロセス名、次の処理起動までの
待時間t、およびプロセスの実行UIDは、図3の
(a)のものと同一であるので説明を省略する。シャッ
トダウン実行の有無は、全てのプロセスを順次実行終了
した後、シャットダウン(電源を切断)するか否かであ
る。システム停止するまでの時間間隔Tは、全てのプロ
セスを起動した後、システム停止までの時間間隔であっ
て、プロセスによって終了処理の実行を終了する時間に
若干の余裕を持たせた値を登録する。
FIG. 3B shows an example of the user process registration file 5 at the normal end. This is the case where the content of the end request in S10 of FIG. 2 is "normal end". In the user process registration file 5 at the time of normal termination, as shown in the figure: -Process name-Wait time t until the next process is started-Process execution UIDs are registered as a set in the starting order, and Presence / absence of shutdown execution ・ Time interval T until system stop ・ Register other. Here, the process name, the waiting time t until the start of the next process, and the process execution UID are the same as those in FIG. The presence / absence of shutdown is whether or not to shut down (power off) after sequentially executing all the processes. The time interval T until the system is stopped is the time interval until the system is stopped after starting all the processes, and a value with a slight allowance for the time to finish the execution of the termination processing by the process is registered. .

【0030】図4は、本発明のステータスファイル例を
示す。このステータスファイル6には、図示のように終
了フラグ61を登録して保存するものであって、計算機
1の直前の終了状態を保存するものであり、システムフ
ラグ62および停電フラグ63から構成されている。シ
ステムフラグ62の“1”(ON)は、直前の計算機1
の処理終了したときの状態が、システム立ち上げからハ
ードへPOFF(電源OFF)コマンドを送信する迄の
状態にあった旨を表し、動作状態のときに異常終了した
状態を表す。システムフラグ62の“0”(OFF)
は、直前の計算機1の処理終了したときの状態が、ハー
ドへPOFF(電源OFF)コマンド送信完了後を表
し、正常に終了した状態を表す。停電フラグ63の
“1”(通電)は、電源が通電状態のときに処理終了し
たことを表す。停電フラグ63が“0”(停電)は、電
源が停電してUPS(無停電電源)から電源が供給した
状態で処理終了したことを表す。
FIG. 4 shows an example of the status file of the present invention. In this status file 6, an end flag 61 is registered and saved as shown in the figure, and the end state immediately before the computer 1 is saved, and is composed of a system flag 62 and a power failure flag 63. There is. "1" (ON) of the system flag 62 indicates that the computer 1 immediately before
The state at the end of the processing of 1 is the state from the system startup to the transmission of the POFF (power OFF) command to the hardware, and indicates the abnormally terminated state in the operating state. System flag 62 "0" (OFF)
Indicates that the state when the processing of the computer 1 immediately before is completed is after the completion of the POFF (power OFF) command transmission to the hardware, and represents the normally completed state. "1" (energization) of the power failure flag 63 indicates that the processing is completed when the power supply is in the energized state. When the power failure flag 63 is "0" (power failure), it means that the power supply is interrupted and the processing is completed in the state where the power is supplied from UPS (uninterruptible power supply).

【0031】次に、図5のフローチャートに示す順序に
従い、図1の構成のもとで計算機1の立ち上げ時の動作
を詳細に説明する。図5において、S21は、PON
(電源ON)指示する。
Next, according to the order shown in the flow chart of FIG. 5, the operation at the time of starting the computer 1 under the configuration of FIG. 1 will be described in detail. In FIG. 5, S21 is PON.
(Power ON) Instruct.

【0032】S22は、システム立ち上げる。これは、
システムプログラムをローディングして各種初期化を行
い、計算機1のシステム(OS)を立ち上げる。S23
は、終了フラグ61をステータスファイル6から読み出
し、その内容を判断する。
At S22, the system is started up. this is,
The system program is loaded, various initializations are performed, and the system (OS) of the computer 1 is started. S23
Reads the end flag 61 from the status file 6 and determines the content thereof.

【0033】S24は、終了フラグ61が“00”(シ
ステムフラグ=0、停電フラグ=0)の場合には、シス
テムは正常に終了し、停電のために終了したと判明する
ので、復電立ち上げを、以下のS25からS29によっ
て行う。
In step S24, when the end flag 61 is "00" (system flag = 0, power failure flag = 0), the system is normally terminated and it is determined that the system is terminated due to a power failure. The raising is performed by the following S25 to S29.

【0034】S25は、利用者処理登録ファイル(復電
立ち上げ)を読み込む。S26は、利用者プロセス1を
起動する。これは、S25で読み込んだ利用者処理登録
ファイル5の先頭から利用者プロセス1を取り出して起
動する。この起動の際、システムのアカウント(システ
ムが持つ権限、通常な全ての資源を利用可能)で起動処
理を実行する。
In step S25, the user processing registration file (power recovery startup) is read. In S26, the user process 1 is activated. This starts the user process 1 by taking out the user process 1 from the head of the user process registration file 5 read in S25. At the time of this activation, the activation process is executed with the system account (privileges possessed by the system, all normal resources can be used).

【0035】S27は、プロセスの実行UIDに変更す
る。これは、利用者処理登録ファイル5に設定されてい
たプロセスに対応する実行UID(権限)を取り出し、
起動したプロセスに付与し、使用可能な資源を制限す
る。これにより、起動されたプロセスは、実行UIDが
持つ権限のもとで、資源を使用して処理を独立に実行す
る。
In step S27, the execution UID of the process is changed. This takes out the execution UID (authority) corresponding to the process set in the user process registration file 5,
It is given to the started process and the usable resources are limited. As a result, the activated process independently executes the process using the resource under the authority of the execution UID.

【0036】S28は、t1秒経過後に次のステップの
S29に進む。これは、利用者処理登録ファイル5に設
定されていた時間t1を経過後に次のプロセスを起動す
るためにS29に進む。
In S28, after the lapse of t1 seconds, the process proceeds to the next step S29. This advances to S29 to activate the next process after the time t1 set in the user process registration file 5 has elapsed.

【0037】S29は、最終プロセスか判別する。YE
Sの場合には、全てのプロセスの起動を終了したので、
S30で運用を開始する。一方、NOの場合には、全て
のプロセスを起動していないと判明したので、S26に
戻り繰り返し、利用者処理登録ファイル5に登録されて
いる次のプロセスを起動、実行UID付与することを繰
り返す。
In step S29, it is determined whether it is the final process. YE
In the case of S, since the start of all processes has been completed,
Operation starts at S30. On the other hand, in the case of NO, since it is determined that all the processes have not been started, the process returns to S26 and is repeated, and the process of starting the next process registered in the user process registration file 5 and giving the execution UID are repeated. .

【0038】以上のS24からS30によって、利用者
プロセスの立ち上げ時に終了フラグを読み込んで復電立
ち上げと判明した場合、復電立ち上げ用の利用者処理登
録ファイル5を読み込み、この利用者処理登録ファイル
5の先頭のプロセスから順次起動、実行UIDを付与、
設定されている時間経過後に次のプロセスを起動、実行
UIDを付与することを繰り返し、全てのプロセスを順
次自動起動することが可能となる。
When the end flag is read at the time of starting the user process and it is determined to be the power recovery startup by the above S24 to S30, the user process registration file 5 for power recovery startup is read, and this user process is performed. Start from the first process of the registration file 5 sequentially, give the execution UID,
After the elapse of the set time, the next process is started and the execution UID is repeatedly given, so that all the processes can be automatically started sequentially.

【0039】S31は、終了フラグ61が“01”(シ
ステムフラグ=0、停電フラグ=1)の場合には、シス
テムは正常に終了し、通電のときに終了したと判明する
ので、通常の立ち上げを、以下のS32からS36によ
って行う。
In S31, when the end flag 61 is "01" (system flag = 0, power failure flag = 1), it is determined that the system has been normally completed and has been completed when the power is turned on. The raising is performed by the following S32 to S36.

【0040】S32は、利用者処理登録ファイル(通常
立ち上げ)を読み込む。S33は、利用者プロセス1を
起動する。これは、S32で読み込んだ利用者処理登録
ファイル5の先頭から利用者プロセス1を取り出して起
動する。この起動の際、システムのアカウント(システ
ムが持つ権限、通常な全ての資源を利用可能)で起動処
理を実行する。
In step S32, the user processing registration file (normal startup) is read. In S33, the user process 1 is activated. This starts the user process 1 from the beginning of the user process registration file 5 read in S32. At the time of this activation, the activation process is executed with the system account (privileges possessed by the system, all normal resources can be used).

【0041】S34は、プロセスの実行UIDに変更す
る。これは、利用者処理登録ファイル5に設定されてい
たプロセスに対応する実行UID(権限)を取り出し、
起動したプロセスに付与し、使用可能な資源を制限す
る。これにより、起動されたプロセスは、実行UIDが
持つ権限のもとで、資源を使用して処理を独立に実行す
る。
In step S34, the execution UID of the process is changed. This takes out the execution UID (authority) corresponding to the process set in the user process registration file 5,
It is given to the started process and the usable resources are limited. As a result, the activated process independently executes the process using the resource under the authority of the execution UID.

【0042】S35は、t1秒経過後に次のステップの
S36に進む。これは、利用者処理登録ファイル5に設
定されていた時間t1を経過後に次のプロセスを起動す
るためにS36に進む。
In S35, after t1 seconds have elapsed, the process proceeds to S36 of the next step. This advances to S36 to activate the next process after the time t1 set in the user process registration file 5 has elapsed.

【0043】S36は、最終プロセスか判別する。YE
Sの場合には、全てのプロセスの起動を終了したので、
S30で運用を開始する。一方、NOの場合には、全て
のプロセスを起動していないと判明したので、S33に
戻り繰り返し、利用者処理登録ファイル5に登録されて
いる次のプロセスを起動、実行UID付与することを繰
り返す。
In step S36, it is determined whether it is the final process. YE
In the case of S, since the start of all processes has been completed,
Operation starts at S30. On the other hand, in the case of NO, since it is determined that all the processes have not been started, the process returns to S33 and is repeated, and the process of starting the next process registered in the user process registration file 5 and giving the execution UID are repeated. .

【0044】以上のS31からS36およびS30によ
って、利用者プロセスの立ち上げ時に終了フラグを読み
込んで通常立ち上げと判明した場合、通常立ち上げ用の
利用者処理登録ファイル5を読み込み、この利用者処理
登録ファイル5の先頭のプロセスから順次起動、実行U
IDを付与、設定されている時間経過後に次のプロセス
を起動、実行UIDを付与することを繰り返し、全ての
プロセスを順次自動起動することが可能となる。
When the end flag is read at the time of starting the user process and it is determined that the user process is normally started by the above S31 to S36 and S30, the user process registration file 5 for normal start is read and this user process is executed. Start and execute U sequentially from the first process in the registration file 5
It is possible to sequentially automatically start all processes by assigning an ID, activating the next process after a lapse of a set time, and assigning an execution UID.

【0045】S37は、終了フラグ61が“10”(シ
ステムフラグ=1、停電フラグ=0)、あるいは“1
1”(システムフラグ=1、停電フラグ=1)の場合に
は、システムは異常に終了し(動作中に何らかの原因に
よって異常終了)したと判明するので、無実行(利用者
プロセスを立ち上げる処理を無実行)とし、S38で警
告(計算機1が前回システムが動作中に異常停止した旨
のメッセージを表示)し、S30でシステムのみの運用
に入る。
In S37, the end flag 61 is "10" (system flag = 1, power failure flag = 0) or "1".
In the case of 1 "(system flag = 1, power failure flag = 1), it is determined that the system has abnormally terminated (abnormal termination due to some cause during operation), so no execution (processing to start the user process) Is executed), a warning is given in S38 (a message indicating that the computer 1 has abnormally stopped during the previous operation of the system is displayed), and the operation of only the system is started in S30.

【0046】以上のS37、S38およびS30によっ
て、利用者プロセスの立ち上げ時に終了フラグを読み込
んでシステムが動作中に計算機1が停止してしまってい
た場合、利用者プロセスを立ち上げる処理を実行するこ
となく、その旨の警告を表示などし、システムのみの運
用を開始する。
By the above S37, S38 and S30, when the end flag is read when the user process is started and the computer 1 is stopped while the system is operating, the process for starting the user process is executed. Instead, display a warning to that effect and start operating the system only.

【0047】次に、図6のフローチャートに示す順序に
従い、図1の構成のもとで起動したプロセスに権限を付
与するときの動作を詳細に説明する。図6において、S
41は、プロセス1を起動する。これは、図2のS5あ
るいはS12で、利用者処理登録ファイル5から取り出
した利用者プロセス1を起動する。
Next, according to the order shown in the flowchart of FIG. 6, the operation for granting authority to the process started under the configuration of FIG. 1 will be described in detail. In FIG. 6, S
41 starts the process 1. This activates the user process 1 extracted from the user process registration file 5 in S5 or S12 of FIG.

【0048】S42は、実行UIDを変更する。これ
は、後述する図7の共有メモリ11上の当該利用者プロ
セスの実行UIDに変更する。これは、プロセスを起動
するときは、プロセス作成手段2がシステムの持つ権限
(通常は全ての資源を使用する権限を持つ)を使って領
域を獲得などして当該プロセスを起動し、起動後に利用
者処理登録ファイル5に登録されていた実行UIDにこ
のプロセスの権限を変更する。
In step S42, the execution UID is changed. This is changed to the execution UID of the user process on the shared memory 11 of FIG. 7, which will be described later. This is because when a process is started, the process creation means 2 uses the system's authority (usually has the authority to use all resources) to acquire an area, starts the process, and uses it after startup. The authority of this process is changed to the execution UID registered in the user process registration file 5.

【0049】S43は、プロセスIDを取得する。これ
は、起動したプロセスのIDを取得する。S44は、共
有メモリへの管理情報(プロセスID、時刻等)の格納
を行う。これは、図7に示すように、共有メモリ11上
に設けた当該プロセスの領域中に、管理情報(S43で
獲得したプロセスID、プロセスの起動時刻、実行UI
Dなど)を格納する。
In step S43, the process ID is acquired. This gets the ID of the started process. In S44, management information (process ID, time, etc.) is stored in the shared memory. This is because, as shown in FIG. 7, management information (process ID acquired in S43, process start time, execution UI) is stored in the area of the process provided in the shared memory 11.
(Such as D).

【0050】S45は、t1秒経過後にS46に進む。
これは、利用者処理登録ファイル5に登録されていた、
“次の処理起動までの待時間”を経過したので、次のプ
ロセスを起動するためにS46に進む。
In S45, the process proceeds to S46 after the elapse of t1 seconds.
This was registered in the user processing registration file 5,
Since the "waiting time until the start of the next process" has elapsed, the process proceeds to S46 to start the next process.

【0051】S46は、最終プロセスか判別する。YE
Sの場合には、利用者処理登録ファイル5中の全てのプ
ロセスを起動したので、終了する(END)。一方、N
Oの場合には、次のプロセスについて、S41以降を繰
り返す。
In step S46, it is determined whether it is the final process. YE
In the case of S, since all the processes in the user process registration file 5 have been activated, the process ends (END). On the other hand, N
In the case of O, S41 and subsequent steps are repeated for the next process.

【0052】以上によって、利用者処理登録ファイル5
からプロセス名を順次取り出して起動すると共に実行U
IDとプロセスIDと起動時刻を管理情報として共有メ
モリ11に格納することを繰り返し、プロセスに権限を
付与して起動することが可能となる。
By the above, the user processing registration file 5
Process names are sequentially fetched from and started up and executed
By repeatedly storing the ID, the process ID, and the activation time as management information in the shared memory 11, it becomes possible to give authority to the process and activate it.

【0053】図7は、本発明のプロセスの管理説明図を
示す。この管理情報は、共有メモリ11上に格納したも
のであって、利用者処理登録ファイル5で起動するプロ
セスの全体に対する情報 ・利用者登録処理の動作状態 ・000 何も動作していない ・001 通常立ち上げ ・010 復電立ち上げ ・011 通常終了 ・100 停電終了 ・登録済利用者プロセス数n ・実行中の利用者プロセス番号i を登録すると共に、プロセス毎に ・i番目の利用者プロセスID ・i番目の利用者プロセス実行UID(権限) ・i番目の利用者プロセスの起動時刻 ・i番目の次の処理起動までの待時間ti を登録する。
FIG. 7 is a diagram for explaining the management of the process of the present invention. This management information is stored in the shared memory 11 and is information for the entire process started by the user processing registration file 5.-User registration processing operating state-000 No operation-001 Normal Startup ・ 010 Power recovery startup ・ 011 Normal termination ・ 100 Power failure termination ・ Number of registered user processes n ・ Registering the user process number i that is being executed and for each process ・ i-th user process ID ・i-th user process execution UID (authority) -i-th user process startup time-i-th next process startup wait time ti is registered.

【0054】[0054]

【発明の効果】以上説明したように、本発明によれば、
利用者処理登録ファイル5を設けて計算機1の立ち上げ
時や終了時などに利用者処理登録ファイル5に設定され
たプロセスを設定された順序で設定された時間間隔で自
動起動および設定されていた権限を付与する構成を採用
しているため、計算機1の利用者プロセスの立ち上げ処
理および終了処理などの自動化を図ることができると共
に、用途に応じて立ち上げ時あるいは終了時に起動する
利用者プロセス、順番、時間間隔、更に権限を簡易に変
更できる。
As described above, according to the present invention,
The user process registration file 5 was provided, and the processes set in the user process registration file 5 were automatically started and set at the set time intervals in the set order when the computer 1 was started up or finished. Since the configuration that grants the authority is adopted, it is possible to automate the start-up process and the end process of the user process of the computer 1, and the user process that is started at the time of start-up or end depending on the application. , Order, time interval, and authority can be changed easily.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の全体動作説明フローチャートである。FIG. 2 is a flowchart for explaining the overall operation of the present invention.

【図3】本発明の利用者処理登録ファイル例である。FIG. 3 is an example of a user process registration file of the present invention.

【図4】本発明のステータスファイル例である。FIG. 4 is an example of a status file of the present invention.

【図5】本発明の立上時の動作説明フローチャートであ
る。
FIG. 5 is a flowchart for explaining the operation of the present invention at startup.

【図6】本発明の権限付与フローチャートである。FIG. 6 is an authorization flow chart of the present invention.

【図7】本発明のプロセスの管理説明図である。FIG. 7 is a management explanatory diagram of a process of the present invention.

【符号の説明】[Explanation of symbols]

1:計算機 2:プロセス作成手段 3:制御テーブル 4:利用者プロセス 5:利用者処理登録ファイル 6:ステータスファイル 61:終了フラグ 62:システムフラグ 63:停電フラグ 7:電源制御装置 11:共有メモリ 1: Computer 2: Process creating means 3: Control table 4: User process 5: User processing registration file 6: Status file 61: End flag 62: System flag 63: Power failure flag 7: Power control device 11: Shared memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数のプロセス名および時間を予め登録す
る利用者処理登録ファイル(5)と、 上記利用者処理登録ファイル(5)のプロセス名のプロ
セスを起動した後、設定されていた時間経過後に、次の
プロセス名のプロセスを起動することを繰り返すプロセ
ス作成手段(2)とを備えたことを特徴とする自動起動
装置。
1. A user process registration file (5) for registering a plurality of process names and times in advance, and a set time elapses after a process having the process name of the user process registration file (5) is started. An automatic start-up device comprising: a process creating means (2) that repeats starting a process with the next process name later.
【請求項2】プロセス名および権限を予め登録する利用
者処理登録ファイル(5)と、 上記利用者処理登録ファイル(5)のプロセス名のプロ
セスの権限を、登録されている権限として該プロセスを
実行せしめるプロセス作成手段(2)とを備えたことを
特徴とする自動起動装置。
2. A user process registration file (5) in which a process name and authority are registered in advance, and the process authority of the process name of the user process registration file (5) is defined as the registered authority. An automatic start-up device comprising a process creating means (2) for executing the process.
JP16696594A 1994-07-19 1994-07-19 Automatic starter Expired - Lifetime JP3649756B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16696594A JP3649756B2 (en) 1994-07-19 1994-07-19 Automatic starter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16696594A JP3649756B2 (en) 1994-07-19 1994-07-19 Automatic starter

Publications (2)

Publication Number Publication Date
JPH0830347A true JPH0830347A (en) 1996-02-02
JP3649756B2 JP3649756B2 (en) 2005-05-18

Family

ID=15840906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16696594A Expired - Lifetime JP3649756B2 (en) 1994-07-19 1994-07-19 Automatic starter

Country Status (1)

Country Link
JP (1) JP3649756B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007037011A1 (en) * 2005-09-29 2007-04-05 Fujitsu Limited Information processing device, state storage and restoration program, and computer-readable information recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007037011A1 (en) * 2005-09-29 2007-04-05 Fujitsu Limited Information processing device, state storage and restoration program, and computer-readable information recording medium

Also Published As

Publication number Publication date
JP3649756B2 (en) 2005-05-18

Similar Documents

Publication Publication Date Title
JPH0830347A (en) Automatic starting device
JP2006099704A (en) Information processor and startup control method
JP3605675B2 (en) Automatic starter for user registration process corresponding to power outage / recovery
JPH06231036A (en) Recovery supporting method in shortage of memory
JPH01288912A (en) Computer activating system
JPS6089225A (en) Automatic power supply cutoff system
JPH0525340B2 (en)
JP3013856B2 (en) File generation automatic selection processor
JPH0559456B2 (en)
JP2000099348A (en) Program execution controller
JPS61187003A (en) Hot/cold start automatic switching method of programmable controller
JPH01276217A (en) Processing system for action environment selection by logic clock
JPS61255440A (en) Program interruption control system
JP2002041302A (en) Job operation management system and job schedule test method of the same system
JPH0433127A (en) Check point control system
JPH0317717A (en) Data processing system
JPH02222056A (en) Batch job submitting system
JPH0769847B2 (en) Job control method during rerun
JPH02310733A (en) Execution control system for program in general purpose terminal system
JPH11296383A (en) Program start control method
JPH0561825A (en) Automatic start system for terminal program
JPH0689119A (en) Program activating system
JPH08286936A (en) System starting device
JPS61141045A (en) Patch system of program
JPH06243014A (en) Data base system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040615

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040816

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050215

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050216

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080225

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090225

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090225

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140225

Year of fee payment: 9

EXPY Cancellation because of completion of term