Pick our brains...

How To Restart Various Server Services

These commands are suited to PM servers.  Other Linux based servers are similar.  Your mileage may vary!

*Note:  the “{” and “}” are not meant literally.  Rather, they represent a set of commands, from which you should choose one.

Restart Human:

go to sleep.  wake up.  make more coffee.

Restart Apache:

New Way:

service httpd {start | stop | restart}

Which is an alias of:

/bin/systemctl {start | stop | restart} httpd.service

Old Way:

/etc/init.d/httpd {start | stop | graceful}

Restart Mysql:

New Way:

service mysql {start | stop | restart}

Which is an alias of:

/bin/systemctl {start | stop | restart} mysql.service

Old Way:

/etc/init.d/MySQL {start | stop | restart}

Restart Email Auth:

/etc/init.d/courier-authlib {start | stop | restart}

Restart Imap / Courier:

/etc/init.d/courier-imap {start | stop | restart}

Restart APF Firewall:

/etc/init.d/apf {start | stop | restart}

Restart Crond:

/etc/init.d/crond {start | stop | restart}

Restart Memcached:

/etc/init.d/memcached {start | stop | restart}