Disable/delete cron entries along with their "associated" virtual server

The script installer for WHMCS automatically creates a required cron job (which executes daily maintenance/automation tasks).

It'd be great if disabling the virtual server in which the script was installed also disabled the cron job - and likewise deleting it should delete the cron job.

Status: 
Closed (fixed)

Comments

Doing some testing...

Hi Jamie -- while cron jobs do appear to be removed when a Virtual Server is deleted, they do remain active when a Virtual Server is disabled.

What are your thoughts on disabling cron jobs when a Virtual Server is marked as disabled?

This could certainly be done .. I will look into implementing it.

I have implemented this for inclusion in Virtualmin 3.88..

Great, thanks!

And yep, actually I only tested the "disabling" part, not the deletion.

Aside from WHMCS I knew of no script that creates a Cron job, and I could not install WHMCS on my experimental VM due to license stuff (too bad they don't have a "secondary experimental installation is okay" policy like you do), and I did not feel like deleting my production WHMCS. :)

Automatically closed -- issue fixed for 2 weeks with no activity.