init seafile { application_groups [seafile] } application_group seafile { applications [ setup seafile seahub nginx ] } 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 { new { SEAF /opt/seafile } pass { SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL SEAF_VERSION SEAF_VERSION } } } application seafile { mode forking requires [ setup ] start [ /usr/bin/seafile, start ] stop [ /usr/bin/seafile, stop ] dir /opt/seafile } application seahub { mode forking requires [ setup ] start [ /usr/bin/seahub, start, 8000 ] stop [ /usr/bin/seahub, stop ] dir /opt/seafile } application nginx { mode forking requires [ setup, seahub ] start [ /usr/sbin/nginx ] dir /opt/seafile } healthchecks riffol { checks [ proc://riffol ] timeout 2 interval 10000 } healthcheck http { 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 } healthcheck server { checks [ "http://127.0.0.1:8082" ] interval 15 timeout 15 }