Operating System - HP-UX
1842148 Members
2507 Online
110187 Solutions
New Discussion

run a process in the background on startup

 

run a process in the background on startup

Please advise me how can i run a command audisp /var/.audit./audfile1 | logger in the backroung mode. My task is tu forward all audit messages turned on from the sam to logger->centerlised log server  in real time. 

 

Thanks for the help 

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: run a process in the background on startup

Do you want to use rc(1m) to start it on each boot?  You can also use init(1m) to do things like that.

Re: run a process in the background on startup

Yes.  I want to use rc(1m). 

Dennis Handly
Acclaimed Contributor

Re: run a process in the background on startup

> I want to use rc(1m).

 

There is a lot of info on that page, do you have any questions?

There is a template in: /sbin/init.d/template