question on init.d


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers question on init.d
# 1  
Old 02-08-2012
question on init.d

Hi,

I added snmpd RPM. The main script is in /etc/init.d/ I went to each of the rc folder to check if SNMP is there or not. Just wondering if there is easy way to check other than cd to each folder to check if the service is there or not.
For example, this is what I did.
Code:
 
ls -l /etc/rc3.d/*snmp*
ls -l /etc/rc2.d/*snmp*
ls -l /etc/rc1.d/*snmp*

# 2  
Old 02-08-2012
What OS are you using?
# 3  
Old 02-08-2012
Please post the results of the "ls" commands you post. On most unix O/S these would be soft links back to /etc/init.d (or some similar named directory) in which case you would only need to look for the original file. An init script should be written to react to the standard parameter "start" or "stop" which is provided by "rc" when unix changes run state.
I assume that "is there" means that the package is installed.
There will almost certainly be a parameter file which sets whether the service itself actually starts (read the init script to find the parameter file).
# 4  
Old 02-09-2012
# rpm -qlp httpd-2.2.3-53.el5.centos.i386.rpm | grep -i httpd

You can find where it will save the binary ...

--Shirish
# 5  
Old 02-09-2012
this search the snmp inside /etc directory
find /etc -name "*snmp*"
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SuSE

cant excute /etc/init/rc*

hi Guys, i'm new to linux i have some problem after reboot it showing like this error .. end -request: i/o error / dev hdb, sector 2566830 cant excute : /etc/init.d/rc No more process /etc in this run level any one know .. plz reply soon ... coz i 'm working as data center (2 Replies)
Discussion started by: coolboys
2 Replies

2. Red Hat

init-script failing because of /etc/rc.d/init.d/functions

I encountered a problem on one of our database servers. OS: CentOS 5.5 final Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel) We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
Discussion started by: bakunin
1 Replies

3. Solaris

What is the diffe b/w init s and init S

i did my research in finding the answer but couldn't find right one. Please give your inputs. (6 Replies)
Discussion started by: ranumala
6 Replies

4. UNIX for Advanced & Expert Users

Problem on init 0, execution is the same with init 6

Hi, I am experiencing a weird thing on my SUNFIRE machine with Solaris 9 OS. When I do init 0 to shutdown the machine to go to ok prompt, what it did was shutdown and reboot like an init 6 command do. I did check the corresponding rc scripts that were involved with init 0 and compared with rc... (2 Replies)
Discussion started by: Yenthanh
2 Replies

5. Red Hat

Difference between 'init s' and 'init 1'

What is the difference between 'init s' and 'init 1'. I know that both will work to change the current run level to single user mode. Is there any difference in those two commands? (5 Replies)
Discussion started by: praveen_b744
5 Replies

6. Linux

How to I change init levels after typing init 1

Dear all, I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel): 1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
Discussion started by: z1dane
8 Replies

7. UNIX for Dummies Questions & Answers

About init

I know if a parent process exits before its child, the last one becomes orphan for a while and then is added to the children of Init process. I'd like to know deeper 1 how the orphan becomes init process, 2 how init knows that from a some point on it has another child. Thank you in advance. (2 Replies)
Discussion started by: Puntino
2 Replies

8. Solaris

different between /sbin/init and /usr/sbin/init

root@test09 # ls -al /sbin/init -r-xr-xr-x 1 root sys 550000 Jun 29 2002 /sbin/init root@test09 # ls -al /usr/sbin/init -r-xr-xr-x 1 root sys 37100 Jun 29 2002 /usr/sbin/init (2 Replies)
Discussion started by: userking
2 Replies

9. UNIX for Advanced & Expert Users

Init 6 & Init 0 problem

Hi Expert, I have encountered some problem with my SUN system. Everytime when i issue command #init 6 OR #init 0 it just logout and prompt for login again instead of rebooting the server when run init 6 and system shutdown when run init 0.. I can only reboot the system using reboot ... Was... (6 Replies)
Discussion started by: sc2005
6 Replies

10. UNIX for Dummies Questions & Answers

init.d

I have written a daemon and want to make sure that it starts up again after the machine is re-started so I can quit manually doing it. Problem is I'm having difficulty understanding what to do with the init.d Any help would be appreciated! (1 Reply)
Discussion started by: BC_Kevin
1 Replies
Login or Register to Ask a Question