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
Amit Jain
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. HP-UX
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
3. UNIX for Dummies Questions & Answers
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
4. UNIX for Dummies Questions & Answers
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
5. HP-UX
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
6. Linux
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
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
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
9. 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
10. Shell Programming and Scripting
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
LEARN ABOUT DEBIAN
service
service(8) System Manager's Manual service(8)
NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script in as predictable an environment as possible, removing most environment variables and with the current
working directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script. service passes COMMAND and OPTIONS to the init script unmodified. All scripts should support at least the start and stop
commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start com-
mand.
service --status-all runs all init scripts, in alphabetical order, with the status command.
EXIT CODES
service calls the init script and returns the status returned by it.
FILES
/etc/init.d
The directory containing System V init scripts.
ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.
SEE ALSO
/etc/init.d/skeleton,
update-rc.d(8),
init(8),
invoke-rc.d(8).
Jan 2006 service(8)