UNIX Start-up file location


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers UNIX Start-up file location
# 1  
Old 07-17-2002
UNIX Start-up file location

I would like to know where to find the start-up sequence for UNIX. I would like to find the command that starts the database up and do not know where to look and I'm sure there is a file that contains this info. Where is it???

Thanks in advance.

Dave.
# 2  
Old 07-19-2002
Try one of these - if the output of 'uname -a' could be posted we may be able to help some more.

Startup script locations:

Code:
 AIX    FreeBSD   HP-UX      LINUX(RedHat) SOLARIS    Tru64 
/etc/rc /etc/rc   /sbin/rc /etc/rc.d/rc   /etc/rc*.d  /sbin/init.d

# 3  
Old 07-22-2002
'uname -a' returns the following:

BEL1 BEL1 4.0 3.0 3441 Pentium III(TM)-ISA/PCI

Checked all locations suggested and came up with nothing.

Dave.
# 4  
Old 07-22-2002
From the perspective of a kernel programmer, at start-up time, unix will mount the root filesystem and then launch the program called init. Exactly what happens next depends on your local version of init. Since you say that you have a System V unix version, you pretty much must have a file called /etc/inittab. And this file will control the start up procedure.

A typical entry in a SunOS inittab is:
s3:3:wait:/bin/rc3

which says, as we transistion into run state 3, we will run the script /bin/rc3. And it has other entries for each run-level. By studying those scripts we can learn exactly what they do.

If I really wanted to, I could take a SunOS system and write my own start-up and shutdown scripts. I would just need to change /etc/inittab to point to my own scripts instead of Sun's. This would not be wise, but it is possible. Something like this may have happened on your system. But if you know scripting well, should should be able to track everything down from /etc/inittab. (And if you don't have a /etc/iniitab, study your man page for init to see how it works.)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File transfer from UNIX to shared location using shell script

Is there any possible way transfering the file from unix to shared location using shell script. i had created the batch script to fetch the files from unix to shared location and it works fine. Due to some problem in windows unable to transfer the file to shared location automatically. can anyone... (2 Replies)
Discussion started by: venkat918
2 Replies

2. Shell Programming and Scripting

How to tell UNIX to start from the oldest file?

Hello, I have a simple while loopinside the script and I wish to tell unix to start reading from the oldest txt file. So, in case some new txt files are transferred into the same folder, the script will not take into consideration until all older files are completely processed. How may I do this?... (3 Replies)
Discussion started by: baris35
3 Replies

3. Shell Programming and Scripting

Copy file from UNIX to shared location

Hi All, I want to transfer file from UNIX to shared locataion . Shared location doesn't resides on my system. Can somebody tell me is there any way i can transfer file from UNIX to shared location without using any tool WINSCP. Thanks, Amit (1 Reply)
Discussion started by: Amit786
1 Replies

4. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

5. Shell Programming and Scripting

How to copy a file from one location to another location?

I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt. Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies

6. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

7. Shell Programming and Scripting

UNIX script to check file and start the informatica server

Hi Rockers, I hope u r dng good one. I have a one question is in unix with informatica . I need a unix script to check whether particular file exists in the folder , If it means we have a informatica server , so we can start the informatica server by accessing that file. Every week we have... (0 Replies)
Discussion started by: gurukrishnan
0 Replies

8. Shell Programming and Scripting

Put one string from one location to another location in a file

Hi Everyone, I have 1.txt here a b c' funny"yes"; d e The finally output is: here a b c d e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies

9. UNIX for Dummies Questions & Answers

Modifying the URL to point to another location in a .sh UNIX file

Hello, I wanted to know how I could change my UNIX script to point to a URL location different from what I had specified earlier. For instance, in my shell script, I want to change the parameter for SMGR. Currently, SMGR = http://192.168.32.160:8084/Simmanr6 should be changed to SMGR =... (6 Replies)
Discussion started by: pjanakir
6 Replies

10. UNIX for Dummies Questions & Answers

unix dictionary location

ne1 know where unixs built in dictionary is??? is it in this place /usr/dict/words????? (1 Reply)
Discussion started by: sinner
1 Replies
Login or Register to Ask a Question