Solved

HP-UX Daemon

Posted on 1998-05-19
2
771 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 73
Prevent this page from creating additional dialogs. 3 767
while loop over for loop 7 119
EvenOdd challenge 10 159
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 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