Article ID: 3158, created on Nov 30, 2007, last review on Aug 14, 2016

  • Applies to:
  • H-Sphere

Resolution

This document explains how to start, stop, and restart daemon services on H-Sphere servers under Linux (RHEL 6, CentOS 6) and FreeBSD. Don't stop services with kill, as it may cause information loss.

Below instructions don't apply to restarting DNS server (named) for Bind 8.x.

Starting Services.
Linux:

    # /etc/rc.d/init.d/<SERVICE> start

FreeBSD:

    # /usr/local/etc/rc.d/<SERVICE> start

Stopping Services.

Linux:

    # /etc/rc.d/init.d/<SERVICE> stop

FreeBSD:

    # /usr/local/etc/rc.d/<SERVICE> stop

Restarting Services.

Linux:

    # /etc/rc.d/init.d/<SERVICE> restart

FreeBSD:

    # /usr/local/etc/rc.d/<SERVICE> restart

An alternative method - and often more appropriate - is to stop and then start the service:

Linux:

    # /etc/rc.d/init.d/<SERVICE> stop
    # sleep 10
    # /etc/rc.d/init.d/<SERVICE> start

FreeBSD:

    # /usr/local/etc/rc.d/<SERVICE> stop
    # sleep 10
    # /usr/local/etc/rc.d/<SERVICE> start

Supervise start command

The "supervise" start command you can find:
On Linux: /etc/init.tab

On FreeBSD: /etc/rc.local

To manage supervise-controled processes you can use "/command/svc" utility. More info about this utility you can find at http://cr.yp.to/daemontools/svc.html page.

Warning: Don't use kill -9 to stop named, as it may cause information loss!

Following are the commands to put in place of :

Service Linux FreeBSD
H-Sphere (tomcat) httpdcp apachecp.sh
H-Sphere Database (PostgreSQL) postgresql 010\.pgsql.sh
Apache httpd apache.sh
FTP proftpd proftpd.sh
Qmail qmaild qmaild.sh
SpamAssasin spamd spamd.sh
ClamAV clamd clamd.sh
PostgreSQL (User DB) postgresql 010\.pgsql.sh
MySQL mysqld mysql-server.sh
DNS ([Bind 9.3 and up](bind_9.html)) named named.sh
ImapProxy imapproxy imapproxy.sh

Search Words

How to restart

services

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF