iRedMail

Start/Stop

> iRedMail > version 0.9.2 > Programs > Start/Stop

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
mysqlservice mysql statusservice mysql stopservice mysql start
apacheservice apache2 statusservice apache2 stopservice apache2 start
postfixservice postfix statusservice postfix stopservice postfix start
dovecotservice dovecot statusservice dovecot stopservice dovecot start
iredapdservice iredapd statusservice iredapd stopservice iredapd start
amavis newservice amavis statusservice amavis stopservice amavis start
clamav daemonservice clamav-daemon statusservice clamav-daemon stopservice clamav-daemon start
clamav patternsservice clamav-freshclam statusservice clamav-freshclam stopservice 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