auto startup of a program


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers auto startup of a program
# 1  
Old 09-09-2001
auto startup of a program

how do i make a program run at system startup?
is there a hirarchy i have to consider?
is there any equivalent to an NT "Service" in unix?
how do you set it up?

thanx
Ron
# 2  
Old 09-09-2001
Hi

It depends on at what runlevel your system comes up.Suppose if your system comes up at run level 3 then you need to place the startup script in the directory where your other run level 3 scripts are placed or in the directory where your other run level 2 scripts (run level 2 , i am saying b'cos run level 2 is an intermediate state when your system comes up in run level 3). Also the startup script should start with alphabet S followed by a number. The number indicates the order in which the scripts are executed. Actually the scripts in the /etc/rc?.d directory are links to files placed in /etc/rc.d directory and these files are executed when the system comes up. Usually people keep DATABASE startup and shutdown scripts in these directories so that when a system comes up the database starts and when the sysem goes down the database also goes down and it's manually done.

Hope this helps
# 3  
Old 09-13-2001
Re: auto startup of a program

All system startup scripts are stored in /etc/rc.d directory.
Care has to be taken by the script to catch start and stop actions as system gives this as argument

Cheers Smilie

Amit Jain
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Auto emails from within the program

Hi All, Would love a little help with a program that I have been left by a friend, that recently passed, and as a legacy to him, would really love to keep it going and ideally expand its distribution around our company. I have the program running but have come across a stumbling block when... (10 Replies)
Discussion started by: nobbyall
10 Replies

2. AIX

Auto startup and shutdown in AIX

Hi All, I would like to schedule auto IPL (shutdown and start-up) by using a shell script. Can you please give me some idea? want to test on my lab box first. shell script should bring AIX LPAR down and then need to start/activate the LPAR after 30 min any idea is highly... (3 Replies)
Discussion started by: System Admin 77
3 Replies

3. Shell Programming and Scripting

Launch a text program inside a konsole at startup

Hi ULFers, I am trying to setup a (very) simple startup script on a centos 6.4 computer and it kind of failed.... Here are the details : As said just above the computer setup is running a CentOS 6.4 x64, on this computer a vncserver is automatically started (by a chkconfig vncserver on), i... (1 Reply)
Discussion started by: pierpier
1 Replies

4. Shell Programming and Scripting

How to Auto Generate pg_hba.conf file at Startup

Hi there, I'll start by letting you you know my current shell programming and scripting is very week (and thats a euphemistic description). I'm really just wanting someone to make a suggestion to get me rolling in the right direction though absolutely any help is of course welcome. Set Up -... (0 Replies)
Discussion started by: lukusc
0 Replies

5. Linux

file location for GNOME auto startup apps

I know how to add an apps to auto-start in GUI, but I'd like to know how to do it mannualy. So where is the file saved to by GUI ? (1 Reply)
Discussion started by: honglus
1 Replies

6. HP-UX

Auto-Port Aggregation startup fails on boot

I have a machine running HP-UX 11.23 (PARISC) and APA startup fails on boot. This is found in /etc/rc.log: Configure Auto-Port Aggregation(LAN Monitor) interfaces Output from "/sbin/rc2.d/S343hplm start": ---------------------------- get_start_dlpi_version: failed, errno is 22 ERROR: ... (1 Reply)
Discussion started by: kknigga
1 Replies

7. UNIX for Dummies Questions & Answers

how do i auto start application upon startup?

sorry, i'm a newbie to unix... but how do i or rather where do i write scripts that auto start my application e.g. Informix? in Windows it would be services but in UNIX where can i auto start my informix program? To run informix i just type "oninit". And do i have to login to any user before... (2 Replies)
Discussion started by: doofie
2 Replies

8. UNIX for Dummies Questions & Answers

auto-startup a process

hi, i just realise that everytimes i boot up my sun solaris 8 sparc, i need to explicitly run the following comand to start up my snmp agent. cd /etc/rc2.d ./K07dmi start ./K07snmpdx start i just wonder that how to make it auto-startup once the machine is boot up. please enlighten me.... (1 Reply)
Discussion started by: champion
1 Replies

9. HP-UX

hpux startup process, AUTO file?

hi, one of the process of hpux startup is this ISL where it consults the AUTO file. is this AUTO file resident in disk? thanks (5 Replies)
Discussion started by: yls177
5 Replies

10. UNIX for Advanced & Expert Users

program that boots at OS startup

Hi All: I wanted to know if i can write a program in UNIX, a program that does not run under a particular user login, but starts up at BOOT time. Are there any online material that i could look into to do that. Appreciate the help. Thanks, Preetham (6 Replies)
Discussion started by: preetham
6 Replies
Login or Register to Ask a Question