From 06f0703a897c1528fe3c86adb6ffa831bcd1367a Mon Sep 17 00:00:00 2001 From: shimunn <> Date: Fri, 19 Apr 2019 20:45:10 +0200 Subject: [PATCH] fixed format error [CI SKIP] --- riffol.conf | 159 ++++++++++++++++++++++++++-------------------------- 1 file changed, 79 insertions(+), 80 deletions(-) diff --git a/riffol.conf b/riffol.conf index 443ac20..415c4cf 100644 --- a/riffol.conf +++ b/riffol.conf @@ -1,102 +1,101 @@ init seafile { - application_groups [ "applicationgroup.seafile" ] + application_groups [seafile] } application_group seafile { applications [ - "application.setup" - "application.seahub" - "application.seafile" - "application.nginx" -] - -application "setup" { - mode oneshot - start [ /usr/bin/setup ] - pidfile /var/run/setup.pid - dir /opt/seafile - env { - pass SEAF_VERSION SEAF_VERSION - pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL - } - stdout file [ /dev/stdout ] - stderr file [ /dev/stderr ] - uid 0 - gid 0 + setup + seafile + seahub + nginx + ] } -application "nginx" { - mode oneshot - start [ /usr/sbin/nginx ] - requires [ setup seahub ] - pidfile /var/run/nginx/nginx.pid - dir /opt/seafile - stdout file [ /dev/log ] - stderr file [ /dev/stderr ] - uid 0 - gid 0 - healthchecks [ - "healthcheck.http" - ] - healthcheckfail restart +application setup { + mode oneshot + start [ /usr/bin/setup ] + dir /opt/seafile + env { + pass SEAF_VERSION SEAF_VERSION + pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL + } + stdout file [ /dev/stdout ] + stderr file [ /dev/stderr ] + uid 0 + gid 0 } -application "seafile" { - mode forking - 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 [ - "healthcheck.server" - ] - healthcheckfail restart +application seafile { + mode forking + 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" { - mode forking - 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 [ - "healthcheck.hub" - ] - healthcheckfail restart +application seahub { + mode forking + 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 ] + requires [ setup, seahub ] + pidfile /var/run/nginx/nginx.pid + dir /opt/seafile + stdout file [ /dev/log ] + stderr file [ /dev/stderr ] + uid 0 + gid 0 + healthchecks [ + http + ] + healthcheckfail restart +} healthcheck http { - checks [ - "http://127.0.0.1:80" - ] - interval 15 - timeout 20 + checks [ + "http://127.0.0.1:80" + ] + interval 15 + timeout 20 } healthcheck hub { - checks [ - "http://127.0.0.1:8000" - "tcp://127.0.0.1:8080", - ] - interval 15 - timeout 60 + checks [ + "http://127.0.0.1:8000" + "tcp://127.0.0.1:8080" + ] + interval 15 + timeout 60 } healthcheck server { - checks [ - "http://127.0.0.1:8082" - ] - interval 15 - timeout 15 + checks [ + "http://127.0.0.1:8082" + ] + interval 15 + timeout 15 }