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

View file

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

View file

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