fixed panic

This commit is contained in:
shimunn 2019-04-19 21:10:07 +02:00
parent 06f0703a89
commit 605b76798a

View File

@ -11,18 +11,32 @@ application_group seafile {
]
}
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 {
pass SEAF_VERSION SEAF_VERSION
pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL
new {
SEAF /opt/seafile
}
pass {
SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL
SEAF_VERSION SEAF_VERSION
}
}
stdout file [ /dev/stdout ]
stderr file [ /dev/stderr ]
uid 0
gid 0
}
application seafile {
@ -30,16 +44,7 @@ application seafile {
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 {
@ -47,32 +52,22 @@ application seahub {
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 ]
mode forking
requires [ setup, seahub ]
pidfile /var/run/nginx/nginx.pid
start [ /usr/sbin/nginx ]
dir /opt/seafile
stdout file [ /dev/log ]
stderr file [ /dev/stderr ]
uid 0
gid 0
healthchecks [
http
]
healthcheckfail restart
}
healthchecks riffol {
checks [
proc://riffol
]
timeout 2
interval 10000
}
healthcheck http {