Are background processes automatically stopped when caddy quits?

(Frederik Creemers) #1

If I have a directive like this:

on startup do_something &

Will this process be terminated when caddy is terminated? Or is there a way to do this?

(Magikstm) #2

It won’t close by itself.

You can use on shutdown to do so.