startup scripts

Posted on 2001-08-17
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?
Question by:kako
  • 3

Expert Comment

ID: 6400095

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

Expert Comment

ID: 6400109

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

  See man inittab
LVL 51

Accepted Solution

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?

Expert Comment

ID: 6400783

 For me it works well.  may OS is AIX


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtualizing TAPE on dual VIOS 3 78
Linux : can't create transaction lock on rpm.lock (Permission denied) 10 140
Write an app 10 67
Control Number of Log Files -Perl 7 55
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now