Your IP : 18.191.238.6
3
�Qg�! � @ sH d dl Z d dlZd dlZd dlZd dlZd dlZd dlT d dlmZ dZd Z dZ
dZdZdZ
eje Zde_d e_d e_d
d� Zdd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zd<dd�Zd=dd�Zdd� Zdd � Zd!d"� Zd#d$� Z d%d&� Z!d'd(� Z"d)d*� Z#d+d*� Z#d,d-� Z$d.d/� Z%d0d1� Z&d2d3� Z'd4d5� Z(d6d7� Z)d8d9� Z*d:d;� Z+dS )>� N)�*)�PIPEz0.0.1� � � � z/usr/local/lswsc C s t jddd� d S )Nz%(asctime)s.%(msecs)03dz [%(levelname)s] %(message)sz%Y-%m-%d %H:%M:%S)�formatZdatefmtz3%(asctime)s.%(msecs)03d [%(levelname)s] %(message)s)�loggingZbasicConfig� r
r
�"/usr/local/lsws/lsns/bin/common.py�init_logging s r c C s t jS )N)�this�
serverRootr
r
r
r �server_root s r c C s
| t _d S )N)r
r )�rootr
r
r �set_server_root s r c C s t � d | S )Nz/lsns/conf/)r )�fileonlyr
r
r �
get_conf_file s r c C s t � d | S )Nz
/lsns/bin/)r )r r
r
r �get_bin_file s r c C s t j| � tjd� d S )Nr )r �error�sys�exit)�msgr
r
r �fatal_error"