@@ -481,7 +481,7 @@ chkconfig httpd on
481481service httpd start
482482if [ " $? " -ne 0 ]; then
483483 echo " Error: httpd start failed"
484- exit
484+ exit 1
485485fi
486486
487487# Nginx configuration
@@ -493,7 +493,7 @@ chkconfig nginx on
493493service nginx start
494494if [ " $? " -ne 0 ]; then
495495 echo " Error: nginx start failed"
496- exit
496+ exit 1
497497fi
498498
499499# Vsftpd configuration
@@ -502,7 +502,7 @@ chkconfig vsftpd on
502502service vsftpd start
503503if [ " $? " -ne 0 ]; then
504504 echo " Error: vsftpd start failed"
505- exit
505+ exit 1
506506fi
507507
508508# MySQL configuration
@@ -546,7 +546,7 @@ chkconfig named on
546546service named start
547547if [ " $? " -ne 0 ]; then
548548 echo " Error: named start failed"
549- exit
549+ exit 1
550550fi
551551
552552# Exim
@@ -576,7 +576,7 @@ chkconfig exim on
576576service exim start
577577if [ " $? " -ne 0 ]; then
578578 echo " Error: exim start failed"
579- exit
579+ exit 1
580580fi
581581
582582# Dovecot configuration
@@ -595,7 +595,7 @@ chkconfig dovecot on
595595service dovecot start
596596if [ " $? " -ne 0 ]; then
597597 echo " Error: dovecot start failed"
598- exit
598+ exit 1
599599fi
600600
601601# ClamAV configuration
@@ -609,7 +609,7 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
609609 service clamd start
610610 if [ " $? " -ne 0 ]; then
611611 echo " Error: clamd start failed"
612- exit
612+ exit 1
613613fi
614614
615615fi
@@ -620,7 +620,7 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
620620 service spamassassin start
621621 if [ " $? " -ne 0 ]; then
622622 echo " Error: spamassassin start failed"
623- exit
623+ exit 1
624624fi
625625
626626fi
@@ -786,7 +786,7 @@ chkconfig vesta on
786786service vesta start
787787if [ " $? " -ne 0 ]; then
788788 echo " Error: vesta start failed"
789- exit
789+ exit 1
790790fi
791791
792792# Send notification to vestacp.com
0 commit comments