recuperar los permisos al iniciar
This commit is contained in:
parent
c3fdfa960d
commit
899494d4fb
1 changed files with 10 additions and 0 deletions
10
monit.conf
10
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
|
check process api with pidfile /srv/http/tmp/puma.pid
|
||||||
start program = "/usr/bin/entrypoint api" as uid app
|
start program = "/usr/bin/entrypoint api" as uid app
|
||||||
stop program = "/bin/sh -c 'cat /srv/http/tmp/puma.pid | xargs kill'"
|
stop program = "/bin/sh -c 'cat /srv/http/tmp/puma.pid | xargs kill'"
|
||||||
|
|
Loading…
Reference in a new issue