Summary of Linking a Startup/Shutdown Script

From: Balaji Raghavan <balajivr_at_visto.com>
Date: Fri Apr 20 2001 - 12:04:52 EDT
Thanks for the the quick response. Many thanks to:=20

VernWalls
Perrier Kent
Michael Peppard
David Foster

However I had linked the file with the help of ln man page and configured=
=2E
But Vern Walls provided me with a good example, and it happend to be the =
same steps I had configrued.

Onceagain Thankyou very much for all your help.=20

Bala.

EXAMPLE:

1. Put the script in /etc/init.d=20
2. If you system normally runs in "init level 2", link the init.d file to=
 a file in /etc/rc2.d -- the "startup" script must be named something tha=
t starts with an uppercase "S" (as in "Start"). Use a high number (like i=
n the 90's) to make sure everything else runs before this script.=20
3. If you system normally runs in "init level 2", link the init.d file to=
 a file in /etc/rc2.d -- the "shutdown" script must be named something th=
at starts with an uppercase "K" (as in "Kill"). Use a low number (like in=
 the 10's) to make sure your script terminates before everything else.=20

EXAMPLE:=20
=3D=3D=3D=3D=3D=3D=3D=20

put the scripts named "start-my-app" and "stop-my-app" in /etc/init.d=20
my system normally boots to run level 3, so link as follows:=20
ln /etc/init.d/start-my-app /etc/rc3.d/S98start-my-app=20
ln /etc/init.d/stop-my-app /etc/rc3.d/K08stop-my-app=20

the "/etc/rc3.d/S98start-my-app" script will be run every time the system=
 enters run level 3=20
the "/etc/rc3.d/S98stop-my-app" script will be run every time the system =
leaves run level 3=20




-----Original Message-----
From:    Balaji Raghavan balajivr@visto.com
Sent:    Thu, 19 Apr 2001 07:04:07 -0700
To:      sunmanagers@sunmanagers.org
Subject: Linking a Startup/Shutdown Script


Hi Gurus,

I have a problem,could any one of you tell me how to link a Startup/Shutd=
own script which is there in /etc/init.d to the /etc/rc file.
AT what level this script has to be start&stop.
Awaiting  for your valuable input.

Thanks in advance.
Bala.

_________________________________________________________________________=
__
Visit http://www.visto.com/info, your free web-based communications cente=
r.
Visto.com. Life on the Dot.

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



_________________________________________________________________________=
__
Visit http://www.visto.com/info, your free web-based communications cente=
r.
Visto.com. Life on the Dot.
Received on Fri Apr 20 17:04:52 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:53 EDT