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,19 +1,19 @@
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" { application setup {
mode oneshot mode oneshot
start [ /usr/bin/setup ] start [ /usr/bin/setup ]
pidfile /var/run/setup.pid
dir /opt/seafile dir /opt/seafile
env { env {
pass SEAF_VERSION SEAF_VERSION pass SEAF_VERSION SEAF_VERSION
@@ -25,23 +25,7 @@ application "setup" {
gid 0 gid 0
} }
application "nginx" { application seafile {
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 "seafile" {
mode forking mode forking
requires [ setup ] requires [ setup ]
start [ /usr/bin/seafile, start ] start [ /usr/bin/seafile, start ]
@@ -53,12 +37,12 @@ application "seafile" {
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 ]
@@ -70,11 +54,26 @@ application seahub" {
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 [
@@ -87,7 +86,7 @@ healthcheck http {
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