System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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