ASSP monitoring


If you want monitor ASSP and restart it as possible in case of crash you may follow 2 ways using ASSP Deluxe for cPanel ;

1) [recommended] You can use following cronjob (enter it with crontab -e) , available with ASSP DELUXE 2.2.9 and above versions

*/3 * * * * /usr/local/cpanel/3rdparty/bin/php-cgi /usr/local/assp/deluxe/status.php long=1

restarts ASSP if required and you will receive an email notification.  status.php automatically disables solution 1) above.  It's better than solution 2 because it executes more and different checks before restarting ASSP .
It also checks if there are multiple copies of assp running. I recommend the usage of status.php if ASSP restarts often on your server.

With ASSP WHM 4.0.0 and above versions  if you stop ASSP using ASSP WHM , status.php will not restart ASSP. It should be restarted using ASSP WHM. If you don't like this behavior yo may add force=yes to your cron in this way

*/3 * * * * /usr/local/cpanel/3rdparty/bin/php-cgi /usr/local/assp/deluxe/status.php force=yes long=1

Using this way , if you stop ASSP using ASSP WHM , ASSP will be restarted automatically afer max 1 minute.

You can set ON the ASSP MONITOR on your ASSP WHM WEB Interface (you should remove the solution 1 above if you activated it).

  It will create the ASSP service on WHM/Services


It will monitor ASSP status on port 25 and it will restart ASSP if required.