Solved

HP-UX Daemon

Posted on 1998-05-19
2
765 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 40 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need Help INsttalling wget on Mavericks OS X 3 85
Window placement 17 65
tripleUp challenge 7 67
mapAB Challlenge 35 89
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now