Web Hosting Star support

We help our customers to stay connected!
It is currently May 18, 2024, 6:24 pm

All times are UTC + 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to restart services like Apache
PostPosted: November 2, 2009, 10:45 pm 
Offline
Site Admin

Joined: March 17, 2004, 9:55 pm
Posts: 23
Location: Skokie chicago Lincolnwood Niles
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
Note: While restarting H-Sphere, run killall -9 java after you stop and before you start CP.

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

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) named named.sh
ImapProxy imapproxy imapproxy.sh


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group