Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HP-UX Daemon

Posted on 1998-05-19
2
Medium Priority
?
781 Views
Last Modified: 2013-12-26
I'm programming a daemon in HP-UX, and i would like to know how can lunch it out of inittab. In Solaris, there are the rc scripts in rc#.d but where are they in HP-UX 10.01??
0
Comment
Question by:ineila
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
dhm earned 120 total points
ID: 1293568
In HP-UX (and in some other unixes) the shell scripts that get executed at boot time live in /sbin/init.d.  HP-UX has some non-standard conventions about how the scripts are called (mostly so that the boot procedure can display user-friendly information about what's going on) so you'll want to copy one of the simpler existing scripts and modify it to start your daemon.
0
 
LVL 3

Expert Comment

by:dhm
ID: 1293569
Oh yeah, once you create the shell script in /sbin/init.d, make a symbolic link to it in /sbin/rcX.d, with a name like S95yourdaemon, where "X" is the run-level at which you want your daemon to be executed.  (Normally /sbin/rc3.d is appropriate.)

Apart from the slightly odd location for the scripts, and the extra args that the scripts support, the HP-UX boot process is more-or-less the same as Solaris'.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question