mnml Asked: 2012-07-21 01:11:38 +0800 CST2012-07-21 01:11:38 +0800 CST 2012-07-21 01:11:38 +0800 CST Call REST on shutdown 772 I would like to know whats the best way to call a REST web service when a Linux server is shutting down. linux 1 Answers Voted Best Answer Chopper3 2012-07-21T01:29:00+08:002012-07-21T01:29:00+08:00 For Debian/Ubuntu based linux distros just; Write a script, give it a name i.e. all_hail_lord_cthulu.sh in the the example below, then run; update-rc.d -f all_hail_lord_cthulu.sh reboot 90 0 6 . For RHEL based linux distros it's a bit more flexible/complex - have a look HERE
For Debian/Ubuntu based linux distros just;
Write a script, give it a name i.e. all_hail_lord_cthulu.sh in the the example below, then run;
For RHEL based linux distros it's a bit more flexible/complex - have a look HERE