The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris login scripts citrowske SUN Solaris 0 02-08-2007 04:11 PM
how to kill threads in solaris izy100 UNIX for Advanced & Expert Users 9 01-07-2007 10:51 PM
kill scripts which are started using nohup gfhgfnhhn UNIX for Advanced & Expert Users 4 07-20-2006 06:07 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 04:24 PM
rc scripts, do i need to kill them on shutdown? kymberm UNIX for Advanced & Expert Users 1 02-10-2003 10:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-05-2002
98_1LE 98_1LE is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
kill scripts under Solaris

I should know this, but do K scripts in the /etc/rc?.d directories get run in numerically ascending or descending order? By default there are none in rc3.d. Is it OK to put 2 in there, and will they be run first (which is my goal).
Thanks,
Chuck

Last edited by 98_1LE; 04-05-2002 at 01:12 PM..
  #2 (permalink)  
Old 04-05-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
kill going down, start going up

98_LE

I think that this is fairly universal for all UNIX types. Typically, Knnn scripts only run on the way down.

I have HPUX and use runlevel 4 ( /sbin/rc4.d) to test) with I will put a Snnn script in /sbin/rc4.d and a Knnn in /sbin/rc3.d to kill it when I go back to init 3.

If you put a Kill in rc3.d it won't run when you shutdown because you aren't going down to init 3, thats where you are currently.

So, it has to be in a directory below where you are currently, typically init 3 is the default.



Sorry to be so simple in my explanation, but some uninitiated may read and be curious about this too.

This is something that most of us don't consider, but once in a great while. Usually only at configuration or upgrade time. So I know how you feel. I forget stuff everyday that I have to go back to the source and look up again.

Last edited by Kelam_Magnus; 04-05-2002 at 05:26 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0