Solved

HP-UX Daemon

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 92
tripleUp challenge 7 79
scoreUp challenge 14 62
Problem to App 4 82
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 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