Running Processing

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Running Processing
# 1  
Old 11-03-2001
Running Processing


I have a question about running processes on my Sun. I want to know how I can find where these threads are being spawned from. I know about the /etc/init and /etc/rc#.d directories and how to stop some services from running. It does not seem as if all of the daemons that are started are here, for example sendmail, where in sol 8 tells the sendmail daemon to run and details the switches to execute when it starts... I am new to Solaris, did experiment with Linux, which I think is a little clearer.. Any help will be appreciated.

# 2  
Old 11-03-2001
You also have...
...which may contain daemon processes to start
at various run levels.
# 3  
Old 11-04-2001
You can always do a ps -ef and look at the parent process id. Then do a ps -ef on the parent PID recursively until you finally track down what started it. This should work well for most processes that weren't started by init, inittab, rc, or inetd. Some processes will have a parent PID of 1 in which case this method won't work.
# 4  
Old 11-04-2001
As stated, processes can also be started by inetd or from the inittab. Sendmail is started in the /etc/rc2.d directory, specifically /etc/rc2.d/S88sendmail by default under Solaris 8. Make sure you check all of the /etc/rc[1-3].d directories for the startup script you are searching for. Services like telnet, ftp, spray etc. are started from inetd. Basically, the process (ftp for example) does not run all the time, but rather inetd listens on all ports for services that are defined in the /etc/inet/inetd.conf file and spawns the service when something tries to talk on the port being listened to. The /etc/inittab file gives the ability to respawn processes that die automatically and more.
# 5  
Old 11-04-2001
Thanks for that concise answer. I was just looking at the s88sendmail script before your posting..Answer me this, I am running run level 3, that would be rc3 scripts. Where does it say, while running rc3 startup scripts, 0 to start the sendmail services from rc2.d directory?

# 6  
Old 11-04-2001
You should have a script called...
...this script determines which set of scripts
to run based on the run level.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Why script is running sometimes and not running sometimes?

Hi, I have a script which does couple of database connection and run some SELECT queries to get some output in the file. I am surprised to see :eek: that when i run my script some times it gives the desired out put and sometimes it shows some error :confused: . Suppose if i execute it say... (3 Replies)
Discussion started by: Sharma331
3 Replies

2. Programming

awk processing / Shell Script Processing to remove columns text file

Hello, I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this : This is the output of ls command : I stored the output in a file filelist 1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies

3. Shell Programming and Scripting

How to make parallel processing rather than serial processing ??

Hello everybody, I have a little problem with one of my program. I made a plugin for collectd (a stats collector for my servers) but I have a problem to make it run in parallel. My program gathers stats from logs, so it needs to run in background waiting for any new lines added in the log... (0 Replies)
Discussion started by: Samb95
0 Replies

4. Shell Programming and Scripting

Running Total Running Wild

Hi. A shell scripting newbie here. I am trying to write a script that will create a running total of Sales, and increment a counter for each Sales entry, but when I executed the program it never stopped. counter=0 Sales=0 echo "enter sales price" read sales while do let counter=counter+1... (6 Replies)
Discussion started by: Ccccc
6 Replies

5. UNIX for Dummies Questions & Answers

File processing

Hi, I have file having 10 coloumns in each row. I need to remove those line which does not have 10 coloumns, like if a row has more than 10 coloumns then remove that line similalry if the row has less than 10 coloumns then remove that line. File1.txt 1 2 3 4 5 6 7 8 9 ... (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

6. Solaris

Running from Shell Vs running from RC script

Hi, i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell. How do i distinguish whether my script is run by init process or by shell?? Will the command /proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies

7. UNIX for Advanced & Expert Users

How to prevent job1 from running while job2 is running..

Hi, Please I need your expert advise on how to prevent/lock from execution job1 while job2 is still running in Unix... THanks:) (3 Replies)
Discussion started by: tikang
3 Replies
Login or Register to Ask a Question