Solved

startup scripts

Posted on 2001-08-17
4
191 Views
Last Modified: 2012-05-04
I have placed my script in /sbin/init.d/ directory
but It doesn't start when I reboot system.
Maybe I have to register it somewhere?
Thanks
0
Comment
Question by:kako
  • 3
4 Comments
 
LVL 6

Expert Comment

by:bira
ID: 6400095
Hi

  You must edit /etc/inittab and insert a line that
will call this script whenever the system reboot.
0
 
LVL 6

Expert Comment

by:bira
ID: 6400109

 Dont forget to include this line as "once" , in order to
 run the script only once when system reboots.

  See man inittab
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 6400194
bira, this is not the usual way to start scripts at boottime.

You need a symlink from /etc/rc2.d (for example) to the script in /sbin/init.d.
PLease refer to /sbin/init.d/README (or sometimes /sbin/init.d/skeleton) for details.

kako, which UNIX?
0
 
LVL 6

Expert Comment

by:bira
ID: 6400783

 For me it works well.  may OS is AIX


0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question