From 605b76798a000120d92130a34dcbbd9b3b32d52a Mon Sep 17 00:00:00 2001 From: shimunn <> Date: Fri, 19 Apr 2019 21:10:07 +0200 Subject: [PATCH] fixed panic --- riffol.conf | 65 +++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 35 deletions(-) diff --git a/riffol.conf b/riffol.conf index 415c4cf..0ba681c 100644 --- a/riffol.conf +++ b/riffol.conf @@ -11,18 +11,32 @@ application_group seafile { ] } +init seafile { + application_groups [seafile] +} + +application_group seafile { + applications [ + setup + seafile + seahub + nginx + ] +} + application setup { mode oneshot start [ /usr/bin/setup ] dir /opt/seafile env { - pass SEAF_VERSION SEAF_VERSION - pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL + new { + SEAF /opt/seafile + } + pass { + SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL + SEAF_VERSION SEAF_VERSION + } } - stdout file [ /dev/stdout ] - stderr file [ /dev/stderr ] - uid 0 - gid 0 } application seafile { @@ -30,16 +44,7 @@ application seafile { requires [ setup ] start [ /usr/bin/seafile, start ] stop [ /usr/bin/seafile, stop ] - pidfile /var/run/seafile/seafile.pid dir /opt/seafile - stdout file [ /dev/stdout ] - stderr file [ /dev/stderr ] - uid 0 - gid 0 - healthchecks [ - server - ] - healthcheckfail restart } application seahub { @@ -47,32 +52,22 @@ application seahub { requires [ setup ] start [ /usr/bin/seahub, start, 8000 ] stop [ /usr/bin/seahub, stop ] - pidfile /var/run/seafile/seahub.pid dir /opt/seafile - stdout file [ /dev/stdout ] - stderr file [ /dev/stderr ] - uid 0 - gid 0 - healthchecks [ - hub - ] - healthcheckfail restart } application nginx { - mode oneshot - start [ /usr/sbin/nginx ] + mode forking requires [ setup, seahub ] - pidfile /var/run/nginx/nginx.pid + start [ /usr/sbin/nginx ] dir /opt/seafile - stdout file [ /dev/log ] - stderr file [ /dev/stderr ] - uid 0 - gid 0 - healthchecks [ - http - ] - healthcheckfail restart +} + +healthchecks riffol { + checks [ + proc://riffol + ] + timeout 2 + interval 10000 } healthcheck http {