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

SNNservice_name To start the service
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