fixed format error [CI SKIP]

This commit is contained in:
shimunn
2019-04-19 20:45:10 +02:00
parent 4ebc0bdf82
commit 06f0703a89

View File

@@ -1,102 +1,101 @@
init seafile { init seafile {
application_groups [ "applicationgroup.seafile" ] application_groups [seafile]
} }
application_group seafile { application_group seafile {
applications [ applications [
"application.setup" setup
"application.seahub" seafile
"application.seafile" seahub
"application.nginx" 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
} }
application "nginx" { application setup {
mode oneshot mode oneshot
start [ /usr/sbin/nginx ] start [ /usr/bin/setup ]
requires [ setup seahub ] dir /opt/seafile
pidfile /var/run/nginx/nginx.pid env {
dir /opt/seafile pass SEAF_VERSION SEAF_VERSION
stdout file [ /dev/log ] pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL
stderr file [ /dev/stderr ] }
uid 0 stdout file [ /dev/stdout ]
gid 0 stderr file [ /dev/stderr ]
healthchecks [ uid 0
"healthcheck.http" gid 0
]
healthcheckfail restart
} }
application "seafile" { application seafile {
mode forking mode forking
requires [ setup ] requires [ setup ]
start [ /usr/bin/seafile, start ] start [ /usr/bin/seafile, start ]
stop [ /usr/bin/seafile, stop ] stop [ /usr/bin/seafile, stop ]
pidfile /var/run/seafile/seafile.pid pidfile /var/run/seafile/seafile.pid
dir /opt/seafile dir /opt/seafile
stdout file [ /dev/stdout ] stdout file [ /dev/stdout ]
stderr file [ /dev/stderr ] stderr file [ /dev/stderr ]
uid 0 uid 0
gid 0 gid 0
healthchecks [ healthchecks [
"healthcheck.server" server
] ]
healthcheckfail restart healthcheckfail restart
} }
application seahub" { application seahub {
mode forking mode forking
requires [ setup ] requires [ setup ]
start [ /usr/bin/seahub, start, 8000 ] start [ /usr/bin/seahub, start, 8000 ]
stop [ /usr/bin/seahub, stop ] stop [ /usr/bin/seahub, stop ]
pidfile /var/run/seafile/seahub.pid pidfile /var/run/seafile/seahub.pid
dir /opt/seafile dir /opt/seafile
stdout file [ /dev/stdout ] stdout file [ /dev/stdout ]
stderr file [ /dev/stderr ] stderr file [ /dev/stderr ]
uid 0 uid 0
gid 0 gid 0
healthchecks [ healthchecks [
"healthcheck.hub" hub
] ]
healthcheckfail restart 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 { healthcheck http {
checks [ checks [
"http://127.0.0.1:80" "http://127.0.0.1:80"
] ]
interval 15 interval 15
timeout 20 timeout 20
} }
healthcheck hub { healthcheck hub {
checks [ checks [
"http://127.0.0.1:8000" "http://127.0.0.1:8000"
"tcp://127.0.0.1:8080", "tcp://127.0.0.1:8080"
] ]
interval 15 interval 15
timeout 60 timeout 60
} }
healthcheck server { healthcheck server {
checks [ checks [
"http://127.0.0.1:8082" "http://127.0.0.1:8082"
] ]
interval 15 interval 15
timeout 15 timeout 15
} }