- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- starting and stopping services
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 02:05 AM
тАО01-23-2003 02:05 AM
How do I stop and start services in linux red hat 7.3? e.g the telnet or network service
Also, how do I configure to start services on startup?
Thanks,
Trystan.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 04:07 AM
тАО01-23-2003 04:07 AM
Re: starting and stopping services
to stop and start services go to /etc/rc.d/init.d/
and to configure services on startup, use chkconfig command
ex: chkconfig --level 2345
like nfs is by default not ON, to make activate the service you need to run the following command
chkconfig --level 2345 nfs on
regards
chakri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 05:30 AM
тАО01-23-2003 05:30 AM
Re: starting and stopping services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 07:13 AM
тАО01-23-2003 07:13 AM
Re: starting and stopping services
Refers to lots of little files for individual services in the directory
/etc/xinetd.d
Here is an example inet file for pop3 mail.
# default: off
# description: The POP3 service allows remote users to access their mail # using an POP3 client such as Netscape Communicator, mutt, # or fetchmail.
service pop3
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/ipop3d
log_on_success += HOST DURATION
log_on_failure += HOST
disable = no
}
Counter intuitive as it is the line disable = no means the pop3 service is enabled. Its the same for all inet services. Everything else is controlled above with the chkconfig command to enable and diable startup specifying the level.
Lastly, you cant chkconfig a service unless its installed.
So if you want to enable iptables and its not installed you have to get the rpm from the install cd and do this (red hat)
rpm -i filename.rpm
Good Luck.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 11:49 AM
тАО01-23-2003 11:49 AM
Re: starting and stopping services
But for me anyway, the simplest way to start or stop a service is with the "service" command. This command will manage all services listed in /etc/rc.d/inet.d
For instance.. to stop the network
service network stop
to start it
service network start
Now Telnet is controlled by the super-service xinetd, as is wu-ftpd and many others. If you look into /etc/xinetd.d you will see all the services and configuration files that are controlled by that super-service.
You can turn them off and on with the "disable =" line in each config file and then issue "service xinetd restart" to make the changes take place.
-kevin