|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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* |
| Sponsored Links | |
|
|
|
#2
|
||||
|
||||
|
What OS are you using?
|
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
# rpm -qlp httpd-2.2.3-53.el5.centos.i386.rpm | grep -i httpd
You can find where it will save the binary ... --Shirish |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
this search the snmp inside /etc directory
find /etc -name "*snmp*" |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| init-script failing because of /etc/rc.d/init.d/functions | bakunin | Red Hat | 1 | 05-06-2011 07:46 AM |
| What is the diffe b/w init s and init S | ranumala | Solaris | 6 | 10-22-2010 05:29 PM |
| Problem on init 0, execution is the same with init 6 | Yenthanh | UNIX for Advanced & Expert Users | 2 | 09-16-2010 02:27 AM |
| Difference between 'init s' and 'init 1' | praveen_b744 | Red Hat | 6 | 02-01-2010 02:25 PM |
| How to I change init levels after typing init 1 | z1dane | Linux | 8 | 01-06-2010 07:37 PM |
|
|