Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

service 1

Status
Not open for further replies.

fluid11

IS-IT--Management
Jan 22, 2002
1,627
US
On a Red Hat 7.2 system, where does the "service" command read from? For example, you can use "service" to stop/start/restart daemons and services on the system like this...

service smb start
service named restart

I'd like to add some programs to be able to use the "service" command like above.

Thanks,
Chris
 
The service command simply starts, restarts or stops services located in /etc/rc.d/init.d (depending on how the script is written)

Have a look at the scripts in these directories, and you can get a good idea of how to write your own.

Bruce Garlock
bruceg@tiac.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top