Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Restart A Service, How TO.
usb
post Nov 7 2004, 10:07 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 7-November 04
Member No.: 4,122



Hello, Can someone tell me how do restart a service? for example if I want to restart , sendmail , webserver, networkcard, etc.. or is there a way to find out all the process that are running on the computer and restart which ever i desideto restart?
Thanks, ph34r.gif
Go to the top of the page
 
+Quote Post
michaelk
post Nov 7 2004, 10:15 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



It depends on the linux distribution and how the service is configured to run. The command:
ps ax

Will display a list of running processes. So what distribution are you running?
Go to the top of the page
 
+Quote Post
hughesjr
post Nov 7 2004, 10:22 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



michaelk is correct, how you restart is dependant upon your distro ... but with most (not all) distros, the command would be:

/etc/init.d/service_name restart

(substitute the name of the service for service_name ... some service names are httpd(apache webserver), sendmail, etc.)

If you post your distro, we can help you more specifically.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
usb
post Nov 7 2004, 10:25 AM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 7-November 04
Member No.: 4,122



Thank you for four info. Im running Suse 9.0. So I have to go to /etc/init.d/ to restart a service?
also I went to /etc/init.d/ and I did not see sendmail and httpd so how do I restart those services>?
Go to the top of the page
 
+Quote Post
hughesjr
post Nov 7 2004, 09:25 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I don't have SuSE 9.0 ... I do have a 9.1 pro install.

Postfix is the default mail server for 9.1 ... probably also for 9.0.

apache2 is the name of the webserver for suse ...

so

/etc/init.d/postfix restart
/etc/init.d/apache2 restart


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th December 2017 - 11:42 PM