Solved

startup scripts

Posted on 2001-08-17
4
188 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 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

23 Experts available now in Live!

Get 1:1 Help Now