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 {
application_groups [ "applicationgroup.seafile" ]
application_groups [seafile]
}
application_group seafile {
applications [
"application.setup"
"application.seahub"
"application.seafile"
"application.nginx"
]
setup
seafile
seahub
nginx
]
}
application "setup" {
application setup {
mode oneshot
start [ /usr/bin/setup ]
pidfile /var/run/setup.pid
dir /opt/seafile
env {
pass SEAF_VERSION SEAF_VERSION
@@ -25,23 +25,7 @@ application "setup" {
gid 0
}
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 "seafile" {
application seafile {
mode forking
requires [ setup ]
start [ /usr/bin/seafile, start ]
@@ -53,12 +37,12 @@ application "seafile" {
uid 0
gid 0
healthchecks [
"healthcheck.server"
server
]
healthcheckfail restart
}
application seahub" {
application seahub {
mode forking
requires [ setup ]
start [ /usr/bin/seahub, start, 8000 ]
@@ -70,11 +54,26 @@ application seahub" {
uid 0
gid 0
healthchecks [
"healthcheck.hub"
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 [
@@ -87,7 +86,7 @@ healthcheck http {
healthcheck hub {
checks [
"http://127.0.0.1:8000"
"tcp://127.0.0.1:8080",
"tcp://127.0.0.1:8080"
]
interval 15
timeout 60