Operating System - Tru64 Unix
1753637 Members
5601 Online
108798 Solutions
New Discussion юеВ

Re: Process in start-up

 
Manuales
Super Advisor

Process in start-up

Hi !!!
could you tell me the diference between Digital Unix and tru64?? is the same??

and ..

how can i programate a shell from start-up digital unix operating system?

thanks!!
<>< Manuales
4 REPLIES 4
Michael Schulte zur Sur
Honored Contributor

Re: Process in start-up

Hi,

from version 4.0F it was named Tru64 Unix, before Digital Unix.
There are start scripts in
/sbin/init.d
with links to
/sbin/rc0.d
/sbin/rc2.d
/sbin/rc3.d
depending on the run state Tru64 Unix is in.
You could put a script into rc3.d with a name starting with "S".
"K" scripts stop processes.


Michael
Ivan Ferreira
Honored Contributor

Re: Process in start-up

Michael is right, create a script in the /sbin/init.d directory to start your app, for example, the /sbin/init.d/dbctl script:

case $1 in

start)
echo "Starting database"
commands to start the database
;;
stop)
echo "Stopping database"
commands to stop the database
;;
*)
echo "Usage: $0 start|stop"
;;

esac

Then create a link in /sbin/rc3.d like this:

ln -s /sbin/init.d/dbctl /sbin/rc3.d/S99dbctl

And create a link in /sbin/rc0.d like this:

ln -s /sbin/init.d/dbctl /sbin/rc3.d/K00dbctl

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Johan Brusche
Honored Contributor

Re: Process in start-up


Do not put Knn-links in rc3.d,(there are no K-link in rc3.d from a standard installation).

Put the K-link in /sbin/rc2.d, an use a low K-number like K00.11, K00.12... so that the application is stopped before networking and other essential OS services are gone.

Rgds,
___ Johan./

_JB_
Ivan Ferreira
Honored Contributor

Re: Process in start-up

Sorry, last link should be in rc0.d ;)
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?