1 |
#!/usr/bin/perl -w |
#!/usr/bin/perl -w |
2 |
############################################################################### |
############################################################################### |
3 |
# Copyright 2006 BITart Gerd Knops, All rights reserved. |
# Meteor |
4 |
|
# An HTTP server for the 2.0 web |
5 |
|
# Copyright (c) 2006 contributing authors |
6 |
# |
# |
7 |
# Project : Meteor |
# The Meteor daemon |
|
# File : meteord |
|
|
# Author : Gerd Knops gerti@BITart.com |
|
8 |
# |
# |
9 |
############################################################################### |
# Main program should call Meteor::Config::setCommandLineParameters(@ARGV),. |
10 |
# |
# Afterwards anybody can access $::CONF{<parameterName>}, where |
11 |
# History: |
# <parameterName> is any valid parameter (except 'Help') listed in the |
12 |
# 060821 Creation of file |
# @DEFAULTS array below. |
13 |
# |
# |
14 |
############################################################################### |
############################################################################### |
15 |
# |
# |
16 |
# Description: |
# This program is free software; you can redistribute it and/or modify it |
17 |
# The Meteor daemon |
# under the terms of the GNU General Public License as published by the Free |
18 |
# |
# Software Foundation; either version 2 of the License, or (at your option) |
19 |
# $Id:$ |
# any later version. |
20 |
# |
# |
21 |
############################################################################### |
# This program is distributed in the hope that it will be useful, but WITHOUT |
22 |
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
23 |
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
24 |
|
# more details. |
25 |
# |
# |
26 |
# DISCLAIMER |
# You should have received a copy of the GNU General Public License along |
27 |
|
# with this program; if not, write to the Free Software Foundation, Inc., |
28 |
|
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
29 |
# |
# |
30 |
# BITart and Gerd Knops make no warranties, representations or commitments |
# For more information visit www.meteorserver.org |
|
# with regard to the contents of this software. BITart and Gerd Knops |
|
|
# specifically disclaim any and all warranties, whether express, implied or |
|
|
# statutory, including, but not limited to, any warranty of merchantability |
|
|
# or fitness for a particular purpose, and non-infringement. Under no |
|
|
# circumstances will BITart or Gerd Knops be liable for loss of data, |
|
|
# special, incidental or consequential damages out of the use of this |
|
|
# software, even if those damages were foreseeable, or BITart or Gerd Knops |
|
|
# was informed of their potential. |
|
31 |
# |
# |
32 |
############################################################################### |
############################################################################### |
33 |
|
|
34 |
|
############################################################################### |
35 |
|
# meterod version |
36 |
|
################################################################################ |
37 |
|
|
38 |
|
$::VERSION='1.05.01'; |
39 |
|
|
40 |
|
############################################################################### |
41 |
# Configuration |
# Configuration |
42 |
############################################################################### |
############################################################################### |
43 |
|
|
68 |
############################################################################### |
############################################################################### |
69 |
|
|
70 |
# |
# |
71 |
|
# Record startup time |
72 |
|
# |
73 |
|
$::STARTUP_TIME=time; |
74 |
|
$::STARTUP_TIME+=0; # avoid warning |
75 |
|
|
76 |
|
# |
77 |
# Program name |
# Program name |
78 |
# |
# |
79 |
$::PGM=$0; |
$::PGM=$0; |