so I'm trying to send notification events whenever a vps, reboots or shutdown etc ...
I was able to achieve this functionality as follow
for the initial setup , this is easy I used the custom scripts
for startup I used /etc/init.d
for reboot and halt /etc/rc0.d and /etc/rc6.d
Now this works perfectly if the shutdown or reboot commands are from the host
but this does not work when I initiate the shutdown or reboot from the Vultr UI or the Vultr api
is there a way to have a shutdown script associated with an instance?