Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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?