Re: [GENERAL] delete a file everytime pg server starts/crashes

Поиск
Список
Период
Сортировка
От Ray Cote
Тема Re: [GENERAL] delete a file everytime pg server starts/crashes
Дата
Msg-id CAG5tnzpaOMDL45TA+18z0D==GEzGOgpCSeDdsXVoWSM=j+Vx3A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] delete a file everytime pg server starts/crashes  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On Thu, Oct 5, 2017 at 10:04 AM, athinivas <athinivas@gmail.com> wrote:
Hi,

I'm having a requirement to delete a file in system whenever pg server is
started/crashed. Any idea?

Thanks,
Athi


If you’re running on Linux you can modify the init.d (or service) file and add a line to delete the file. 
To remove on crash is likely to require some sort of ongoing monitoring service to see that the process is no longer running. 
If you’re already using a service (such as monit) which brings an application back up after crash then adding a line to the init.d file may be sufficient.
—Ray

--
Raymond Cote, President
voice: +1.603.924.6079 email: rgacote@AppropriateSolutions.com skype: ray.cote


В списке pgsql-general по дате отправления:

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] delete a file everytime pg server starts/crashes
Следующее
От: avi Singh
Дата:
Сообщение: [GENERAL] Postgresql CDC tool recommendations ?