Configuring boot time services

Discussion regarding the installation and configuration of Linux distributions.

Configuring boot time services

Postby if » Thu Dec 19, 2002 4:38 pm

Aslam-o-Aliakum,

I want to configure/reconfigure the boot time loading service, in other words service which are loaded at boot time and if load perfrectly then infront of this service name [OK] (in green color) or [FAILED] (in red color) is seen.

plz tell me how can i do so...thx
if u find anything which shows my lack of knowledge,
please guide me... thx
------------------------------------
Aslam-o-Aliakum-Wa-Rahmatullah-Wa-Barakatuhu
------------------------------------
if
if
Battalion Quarter Master Havaldaar
 
Posts: 224
Joined: Tue Aug 13, 2002 12:52 pm
WLM: ifhope@hotmail.com
Yahoo Messenger: hope_never@yahoo.com
Location: Islamabad

Postby fawad » Fri Dec 20, 2002 7:25 am

if: The boot time scripts are called init scripts. They are located under /etc/rc.d/init.d under Redhat like distros, /etc/init.d under Debian based distros, and under /etc/rc.d (?) on BSDish ones. Pick up a sample file from one of these directories as a template.
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby if » Thu Jan 02, 2003 10:25 am

Aslam-o-Aliakum,

i got three file at /etc/rc.d named rc.sysinit, rc.local, rc ...

plz tell how can i stop NIS and LPD services from which file... thx
if u find anything which shows my lack of knowledge,

please guide me... thx

------------------------------------

Aslam-o-Aliakum-Wa-Rahmatullah-Wa-Barakatuhu

------------------------------------

if
if
Battalion Quarter Master Havaldaar
 
Posts: 224
Joined: Tue Aug 13, 2002 12:52 pm
WLM: ifhope@hotmail.com
Yahoo Messenger: hope_never@yahoo.com
Location: Islamabad

Postby majorwoo » Thu Jan 09, 2003 11:10 am

on redhat as root you can

service lpd stop/start/restart

this will stop/start the serviice this time, if you want to change the default on boot use

chkconfig lpd on/off

that will ensure that the service is turned off in all runlevels for all eternity, but will not actually stop the running instance, so if it is currently running and you dont want to ever see ti again

service lpd stop
chkconfig lpd off

and your set
_________________
majorwoo

Quiet brain, or I'll stab you with a Q-tip.
majorwoo
Lance Naik
 
Posts: 19
Joined: Sun Nov 24, 2002 8:35 am
Website: http://majorwoo.hopto.org
AOL: majorwoo
Location: Daytoan Beach, FL - USA

Postby AsaifullahK » Thu Jan 23, 2003 1:42 pm

edit files : /etc/rc.d/rc.inet1 and /etc/rc.d/rc.inet2 and comment out the services which you dont wish to start at boot time.

if these files dont exist ( they do on Slackware 8.0 ), run the following command :
egrep -ri '(servicename1|servicename2|...)' /etc

where servicename refers to the service you are looking for, and comment out the lines initializing them at startup in the files found.

if this fails too, just add ' killall -9 servicename ' to /etc/rc.d/rc.local
to kill the service you dont want running. :)
Regards,
Ali Saifullah Khan

Hail The Penguin !!!
AsaifullahK
Cadet
 
Posts: 11
Joined: Fri Jan 17, 2003 11:38 pm
ICQ: 279788507
Website: http://hack-probe.sourceforge.net
WLM: alisaifullah@hotmail.com
Yahoo Messenger: saifulla1984@yahoo.com
Location: Earth > Asia > Pakistan > Karachi


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron