H-Sphere Sysadmin Guide

Restarting Services

 

Related Docs:  

Restarting Named

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

Below instructions don't apply to restarting DNS server (named).

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 popular - 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

Following are the commands to put in place of <SERVICE>:

Service Linux FreeBSD
H-Sphere (tomcat) httpdcp apachecp.sh
Apache httpd apache.sh
FTP proftpd proftpd
Qmail qmaild qmaild.sh
PostgreSQL postgresql 010.pgsql.sh
MySQL mysqld mysql-server.sh

 


Related Docs:  

Restarting Named



© Copyright 1998-2004. Positive Software Corporation.
All rights reserved.