Improve python scripts docstring.

This commit is contained in:
Shuai Lin 2016-11-29 17:13:06 +08:00
parent ea4f3762f7
commit 01d1035433
3 changed files with 7 additions and 10 deletions

View file

@ -2,9 +2,7 @@
#coding: UTF-8
"""
This script calls the appropriate seafile init scripts (e.g.
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
container.
Bootstraping seafile server, letsencrypt (verification & cron job).
"""
import argparse

View file

@ -2,9 +2,8 @@
#coding: UTF-8
"""
This script calls the appropriate seafile init scripts (e.g.
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
container.
Starts the seafile/seahub server and watches the controller process. It is
the entrypoint command of the docker container.
"""
import json
@ -29,7 +28,9 @@ def watch_controller():
controller_pid = get_command_output('ps aux | grep seafile-controller |grep -v grep || true').strip()
if not controller_pid:
retry += 1
time.sleep(2)
else:
retry = 0
time.sleep(5)
print 'seafile controller exited unexpectedly.'
sys.exit(1)

View file

@ -2,9 +2,7 @@
#coding: UTF-8
"""
This script calls the appropriate seafile init scripts (e.g.
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
container.
This script is used to run proper upgrade scripts automatically.
"""
import json