Forum Discussion

dilde_116091's avatar
dilde_116091
Icon for Nimbostratus rankNimbostratus
Sep 23, 2013

Execute Script when an application is deleted

An implementation script is possible, but is it possible to specify a script when the application is deleted ?

 

I would like make a crontab task for import a an external file, it's not a problem in implementation section of a template. But how remove this file when the application is deleted ? and remove the crontab line ?

 

Regards

 

1 Reply

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account

    Unfortunately, the iApp framework handles deletion internally, without a way to trigger a custom script. The only solution I can think of for you would be to write a separate background script that periodically checks "tmsh list sys app service" for the existence of your iApp, and manipulates your crontab when it detects the iApp's absence.