Operating System - Tru64 Unix
1751955 Members
4921 Online
108783 Solutions
New Discussion юеВ

UNIX startup and shutdown script

 

UNIX startup and shutdown script

I need to know the location and how to create script, which running when uinx shutting down and when sit startup
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: UNIX startup and shutdown script

For details, see The system administration Manual, section:

Identifying and Modifying the System Initialization Files

The basics:

The systems boots into multi-user level. The script files should be located in /sbin/init.d and a symbolic link with the name:

/sbin/rc3.d:
SNNservice_name To start the service
/sbin/rc0.d
KNNservice_name To stop the service

NN is a number that specify the startup order.

To create the start and stop script, use any of the scripts located in /sbin/init.d as example.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?

Re: UNIX startup and shutdown script

how can i create the sypolic link
Mark Poeschl_2
Honored Contributor

Re: UNIX startup and shutdown script

ln -s /sbin/init.d/servicename /sbin/rc3.d/SNNservicename

ln -s /sbin/init.d/servicename /sbin/rc0.d/KNNservicename