fixed panic
This commit is contained in:
parent
06f0703a89
commit
605b76798a
63
riffol.conf
63
riffol.conf
@ -11,18 +11,32 @@ application_group seafile {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init seafile {
|
||||||
|
application_groups [seafile]
|
||||||
|
}
|
||||||
|
|
||||||
|
application_group seafile {
|
||||||
|
applications [
|
||||||
|
setup
|
||||||
|
seafile
|
||||||
|
seahub
|
||||||
|
nginx
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
application setup {
|
application setup {
|
||||||
mode oneshot
|
mode oneshot
|
||||||
start [ /usr/bin/setup ]
|
start [ /usr/bin/setup ]
|
||||||
dir /opt/seafile
|
dir /opt/seafile
|
||||||
env {
|
env {
|
||||||
pass SEAF_VERSION SEAF_VERSION
|
new {
|
||||||
pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL
|
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 {
|
application seafile {
|
||||||
@ -30,16 +44,7 @@ application seafile {
|
|||||||
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
|
|
||||||
dir /opt/seafile
|
dir /opt/seafile
|
||||||
stdout file [ /dev/stdout ]
|
|
||||||
stderr file [ /dev/stderr ]
|
|
||||||
uid 0
|
|
||||||
gid 0
|
|
||||||
healthchecks [
|
|
||||||
server
|
|
||||||
]
|
|
||||||
healthcheckfail restart
|
|
||||||
}
|
}
|
||||||
|
|
||||||
application seahub {
|
application seahub {
|
||||||
@ -47,32 +52,22 @@ application seahub {
|
|||||||
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
|
|
||||||
dir /opt/seafile
|
dir /opt/seafile
|
||||||
stdout file [ /dev/stdout ]
|
|
||||||
stderr file [ /dev/stderr ]
|
|
||||||
uid 0
|
|
||||||
gid 0
|
|
||||||
healthchecks [
|
|
||||||
hub
|
|
||||||
]
|
|
||||||
healthcheckfail restart
|
|
||||||
}
|
}
|
||||||
|
|
||||||
application nginx {
|
application nginx {
|
||||||
mode oneshot
|
mode forking
|
||||||
start [ /usr/sbin/nginx ]
|
|
||||||
requires [ setup, seahub ]
|
requires [ setup, seahub ]
|
||||||
pidfile /var/run/nginx/nginx.pid
|
start [ /usr/sbin/nginx ]
|
||||||
dir /opt/seafile
|
dir /opt/seafile
|
||||||
stdout file [ /dev/log ]
|
}
|
||||||
stderr file [ /dev/stderr ]
|
|
||||||
uid 0
|
healthchecks riffol {
|
||||||
gid 0
|
checks [
|
||||||
healthchecks [
|
proc://riffol
|
||||||
http
|
|
||||||
]
|
]
|
||||||
healthcheckfail restart
|
timeout 2
|
||||||
|
interval 10000
|
||||||
}
|
}
|
||||||
|
|
||||||
healthcheck http {
|
healthcheck http {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user