From 899494d4fb08343ecd06ea1c4fcf01337970ceaa Mon Sep 17 00:00:00 2001 From: fauno Date: Sat, 20 Apr 2019 12:28:02 -0300 Subject: [PATCH] recuperar los permisos al iniciar --- monit.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/monit.conf b/monit.conf index c05a02e..7626a9b 100644 --- a/monit.conf +++ b/monit.conf @@ -1,3 +1,13 @@ +check program chown + with path "/bin/chown -R app:www-data /srv/http/data" + every 1 cycles + if status = 0 then unmonitor + +check program chmod + with path "/bin/chmod -R u=rwX,g=,o= /srv/http/data" + every 1 cycles + if status = 0 then unmonitor + check process api with pidfile /srv/http/tmp/puma.pid start program = "/usr/bin/entrypoint api" as uid app stop program = "/bin/sh -c 'cat /srv/http/tmp/puma.pid | xargs kill'"