Check, stop or start daemons
Server programs running in the background are also called services or daemons. They can be checked, startet or stopped. The following services must run for iRedMail:
daemon | check | stop | start |
---|---|---|---|
mysql | service mysql status | service mysql stop | service mysql start |
apache | service apache2 status | service apache2 stop | service apache2 start |
postfix | service postfix status | service postfix stop | service postfix start |
dovecot | service dovecot status | service dovecot stop | service dovecot start |
iredapd | service iredapd status | service iredapd stop | service iredapd start |
amavis new | service amavis status | service amavis stop | service amavis start |
clamav daemon | service clamav-daemon status | service clamav-daemon stop | service clamav-daemon start |
clamav patterns | service clamav-freshclam status | service clamav-freshclam stop | service clamav-freshclam start |
Automated check
A little bash script can check above daemons and start them automatically if needed:
#!/bin/bash for vService in mysql apache2 postfix dovecot iredapd \ amavis clamav-daemon clamav-freshclam do service $vService status || service $vService start done