Stopping a website from a website

Is there a way to stop an Azure site from WebJob?

I have an Azure site using Ghost that runs on Node. I am trying to schedule a backup of a Ghost database file, which ideally should be executed before the site is started. I can temporarily stop the site by ending the Node.exe process using the Kudu PowerShell console.

If I try to do the same from WebJob, the process will not end - presumably because WebJob works in a different context and does not see the Node.exe process.

Is there a way to stop / start a site from WebJob?

+2
source share
2 answers

, - WebJob, node.exe.

@trailmax , (.. w3wp) WebJobs (, , Kudu), node.exe webjob. , , , - - , node.exe, WebJob .

+2

- Azure HTTP API. WebJob -, HTTP. . .

WebJob , -. , , WebJob . , WebJob ...

+3

All Articles