~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Toshio Kuratomi
  • Date: 2010-04-18 17:58:04 UTC
  • mto: (464.1.1 mod-wsgi)
  • mto: This revision was merged to the branch mainline in revision 465.
  • Revision ID: toshio@fedoraproject.org-20100418175804-8auslftjigl36lvr
Add GPLv2+ header to loggerhead.wsgi script

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# along with this program; if not, write to the Free Software
14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
15
 
16
 
"""A script for starting the loggerhead process."""
 
16
"""
 
17
WARNING! This script has been deprecated and will go away soon!
 
18
A script for starting the loggerhead process.
 
19
"""
17
20
 
18
21
 
19
22
import logging
36
39
 
37
40
 
38
41
def main():
 
42
    sys.stderr.write('\n\n')
 
43
    sys.stderr.write('WARNING!!! This script has been deprecated by '
 
44
                     'serve-branches, and will be removed in the next '
 
45
                     'release. Please migrate to serve-branches and report '
 
46
                     'any missing features.\n')
 
47
    sys.stderr.write('\n\n')
 
48
 
39
49
    home = os.path.realpath(os.path.dirname(__file__))
40
50
    default_pidfile = os.path.join(home, 'loggerhead.pid')
41
51
    default_configfile = os.path.join(home, 'loggerhead.conf')
92
102
    if not options.foreground:
93
103
        sys.stderr.write('\n')
94
104
        sys.stderr.write('Launching loggerhead into the background.\n')
95
 
        sys.stderr.write('PID file: %s\n' % options.pidfile)
 
105
        sys.stderr.write('PID file: %s\n' % (options.pidfile,))
96
106
        sys.stderr.write('\n')
97
107
 
98
108
        daemon.daemonize(options.pidfile, home)