Operating System - HP-UX
1833762 Members
2142 Online
110063 Solutions
New Discussion

Re: how to lunch program at boot

 
SOLVED
Go to solution
ballans
Advisor

how to lunch program at boot

Hello,
I installed SpamAssassin on my HP-UX mail server (sendmail) and I have to start the spamd daemon automatically at boot...
I don't very well know HP-UX but I think it takes place in :
/sbin/init.d
Is that right ?
May I do a symbolic link to the binary spamd on that dircetory ?
Thank's in advance for your response.
3 REPLIES 3
S.K. Chan
Honored Contributor
Solution

Re: how to lunch program at boot

See my reply in this thread (and others as well)..
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x513f35a43b46d71190080090279cd0f9,00.html
.. that should answer all your questions.
James R. Ferguson
Acclaimed Contributor

Re: how to lunch program at boot

Hi:

A quick description of the 'rc' (run control) script mechanism is described in the man pages for 'rc(1M)'.

An excellent, more detailed description of the startup mechanism and user-requirements can be found in this whitepaper (written at 10.0 but still appliciable at for all 11x versions:

http://docs.hp.com/hpux/onlinedocs/os/startup.pdf

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: how to lunch program at boot

In summary, you're correct.

You may need to create a start/stop script in /sbin./init.d

You can copy /sbin/init.d/template to a new name if your spam assasin didn't come with a script.

Then you create a symbolic link at the run level you want to start the script in the proper directory.

Example, run level three startup, name of the start script is /sbin/init.d/spamassasin

cd /sbin/rc3.d
ln -s /sbin/init.d/spamassasin S800spamkill
cd /sbin/rc2.d
ln -s /sbin/init.d/spamassasin K200spamkill

The S guy starts it
The K guy kills it.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com