On Friday, 5 April 2024 16:21:15 BST Michael Orlitzky wrote: > But barring that, you could add pre- and post-stop hooks that will let you > know that the daemon is stopping. > > For example, in /etc/conf.d/boinc, you could put > > stop_pre(){ > touch /run/stopping-boinc > } > stop_post(){ > rm -f /run/stopping-boinc > } > > or something like that. (I haven't tested, but the idea is sound.) > Then, if that file exists, boinc is stopping.
Nice, neat solution. Works a charm, too. Thanks again, Michael. -- Regards, Peter.