buy hypertropin

How do I restart a daemon ? Services

Most of the services can be restarted from WHM; however, you may need to restart them from the shell. You must be logged in as root to do this. All standard Linux services, such as HTTP, FTP, exim, cPanel/WHM, Interchange, MySQL, etc, have init scripts in /etc/rc.d/init.d/

root@host [~]# ls /etc/rc.d/init.d/
./ atd* exim* httpd.tmpeditlib kdcrotate* named* nscd* rawdevices* snmpd* yppasswdd*
../ autofs* filelimits* identd* keytable* netfs* portmap* rstatd* sshd* ypserv* 
anacron* bandmin* functions* ipaliases* killall* network* portsentry* rusersd* syslog* ypxfrd*
antirelayd* chkservd* gpm* ipchains* kudzu* nfs* proftpd* rwalld* xfs* 
apmd* cpanel3* halt* iptables* lpd* nfslock* radvd* rwhod* xinetd* 
arpwatch* crond* httpd@ isdn* mysql* nofsck* random* single* ypbind*

This is typical of what you will find in this directory. The main ones you should be concerned with are:

  • cpanel3 — starts/stops cPanel and WHM. This includes Interchange, cppop, and cluster management services as well.
  • exim — starts/stops the exim mail server.
  • httpd — starts/stops the Apache web server.
  • mysql — starts/stops the MySQL database server.
  • named — Starts/stops the BIND DNS server.
  • proftpd — Starts/stop the ProFTPd or Pure-FTPd (depending on which is enabled) FTP server.

Using these scripts is very easy. Let’s say that named/BIND is down and we need to restart it. As root, type:

  • /etc/rc.d/init.d/named start

You should see it start up, with a green [OK] message on the left side of the shell/terminal window.

If you see a red [FAILED] message, check the message log.

  • tail /var/log/messages

You should be able to see the error. If you cannot fix it yourself, contact tech support. Some of these services have more options than just “start” and “stop,” and other ways to do them.

Let’s say you have a lot of domains using your DNS server and you don’t want to stop and restart named just because you edited one domain. Type:

  • ndc reload

If you make a minor change to the /usr/local/apache/conf/httpd.conf, but don’t want to restart it, type:

  • /etc/rc.d/init.d/httpd graceful to do a graceful restart. A graceful restart finishes current requests before killing the child processes.

If you want to learn more about the commands a script offers, you can simply run the script without passing any arguments to it.

root@saturn [~]# /etc/rc.d/init.d/cpanel3 <br />Usage: /etc/rc.d/init.d/cpanel3 {start|stop|status|restart}

This lets us know we can start, stop, check the running status of the service(s), or restart it. If you can’t get a service to start, and don’t know how to fix it, contact tech support for assistance.

References

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AllFAQ/WHMsFAQ

One Response to “How do I restart a daemon ? Services”

  1. Prada handbag Says:

    I join. And I have faced it.
    I congratulate, this excellent idea is necessary just by the way
    In it something is. Now all became clear to me, Many thanks for the information.

    Juicy Couture handbags

Leave a Reply