?
Solved

startup scripts

Posted on 2001-08-17
4
Medium Priority
?
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 150 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

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 …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 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…
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

777 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