[HPADM] closed runlevel question



Hi admins

Thanks you very much for your help specially James J.Perry, Ford Phillip, dave.johnson,
Elf Hartmen and Bill Hassell and others.



Cordialement(Best regards)
Kazem Bakhshesh(Administrateur Système : HP-UX)
E-Mail : bakhshek@xxxxxxxxxx
Tel : 01.72.94.73.09

Question
If I want to create a service which start/stop on rc3.d
who can I find the safe order number
for exemple K???service
S???service

Question
if my initdefault is 3 in /etc/inittab (init:3:initdefault: )
/sbin/rc3.d/K999service would be executed when serveur is
stoped ?


To do start / stop scripts, I use the following process:

* Indentify the run level where I want the process to start and at what part of that run level startup I want it to run.

Example:
An Apache webserver that connects to a database to query some critical data. The database starts in run level 3 with job numeric ID
65 (S65databae). So this instance of Apache needs to start after S65database so I will normally pick a unique number after that point, say 66. Thus I create a symbolic link from /etc/init.d/apache to /etc/rc3.d/S66apache.

* Kill scripts numbering is the inverse of the start script numbering to make the scripts shut down in the proper order when starting from 1 just as with the start scripts.

Example:
Using the above Apache example I subtract 66 from 100 to get 44 and then I link /etc/init.d/apache to /etc/rc2.d/K44apache. The kill script for the database in this example would be /etc/rc2.d/K45database.

The way the process works when going from runlevel 3 to runlevel 2 is that the OS is told that it needs to run the stop/kill scripts starting at K01 and got through them numerically.



Relevant Pages

  • [NEWS] Granite Software ZMerge Administration Database Insecure Default ACLs
    ... the ZMerge administration database grants ... Note that while anonymous web users can read and modify all scripts, ... The ZMerge administration database contains the data import/export scripts ... server, allowing scripts to read and write arbitrary files on the server. ...
    (Securiteam)
  • I am available now
    ... Data Models, Data warehouse design, Data migration, Data population, ... Database consolidation, User Interface Prototypes, Database design, ... Oracle Workflow - Business Process Management Solution. ... To collect database and application related data, set of scripts have ...
    (misc.immigration.usa)
  • Network monitoring system
    ... Basically there are 3 programs and a database; ... a database loader on the receiving machine. ... The sender process on that machine is quietly waiting for data in the file ... generate a nice html page using simple php scripts. ...
    (comp.os.linux.networking)
  • Network Monitoring System
    ... Basically there are 3 programs and a database; ... a database loader on the receiving machine. ... The sender process on that machine is quietly waiting for data in the file ... generate a nice html page using simple php scripts. ...
    (comp.os.linux.misc)
  • Network Monitoring System
    ... Basically there are 3 programs and a database; ... a database loader on the receiving machine. ... The sender process on that machine is quietly waiting for data in the file ... generate a nice html page using simple php scripts. ...
    (comp.os.linux.development.apps)