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 OPENDARWIN
systemstarter
SystemStarter(8) BSD System Manager's Manual SystemStarter(8)
NAME
SystemStarter -- Start, stop, and restart system services
SYNOPSIS
SystemStarter [-gvxdDqn] [action [service]]
DESCRIPTION
The SystemStarter utility may be used to start, stop, and restart the system services which are described in the /Library/StartupItems/ and
/System/Library/StartupItems/ paths.
The optional action argument specifies which action SystemStarter performs on the startup items. The optional service argument specifies
which startup items to perform the action on. If no service is specified, all startup items will be acted on; otherwise, only the item pro-
viding the service, any items it requires, or any items that depend on it will be acted on.
During boot SystemStarter is invoked by rc (see rc(8)) and is responsible for starting all startup items in an order that satisfies each
item's requirements.
ACTIONS
start start all items, or start the item that provides the specified service and all items providing services it requires.
stop stop all items, or stop the item that provides the specified service and all items that depend on it.
restart restart all items, or restart the item providing the specified service.
OPTIONS
-g graphical startup
-v verbose (text mode) startup
-x safe mode startup (only run Apple-provided items)
-r keep running after last startup item completes, in graphical startup only
-d print debugging output
-D print debugging output and dependencies
-q be quiet (disable debugging output)
-n don't actually perform action on items (no-run mode)
NOTES
Unless an explicit call to ConsoleMessage is made, SystemStarter examines the exit status of the startup item scripts to determine the suc-
cess or failure of the services provided by that script.
In Darwin it is preferable to create custom startup items than to modify rc, and at some point SystemStarter may entirely encompass the role
of rc.
FILES
/Library/StartupItems/ User-installed startup items.
/System/Library/StartupItems/ System-provided startup items.
SEE ALSO
ConsoleMessage(8)
rc(8)
http://www.opensource.apple.com/projects/documentation/howto/html/SystemStarter_HOWTO.html
HISTORY
The SystemStarter utility appeared in Darwin 1.0
SystemStarter was extended in Darwin 6.0 to support partial startup and interprocess communication.
Darwin April 12, 2002 Darwin