Solved

startup scripts

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help stop mail server from sending spam. 27 129
linux  centos   virtualization network quetion 6 81
Unistall fileset without dependecies on AIX 3 69
lunix and unix command 21 86
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

840 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