cmbi / mrs

Maarten's Retrieval Service
Boost Software License 1.0
0 stars 3 forks source link

kicking mrs deamon in docker #64

Open cbaakman opened 7 years ago

cbaakman commented 7 years ago

Whenever A databank is updated outide MRS (like in cron), the deamon needs to get a sighup to make it reload the databanks. The problem is that the deamon now runs in a docker container, so that it's pid file is inaccessible for cron.

What might work is something like:

/usr/bin/docker restart `/usr/bin/docker ps | grep 'mrs server start' | /usr/bin/cut -d" " -f1`