File: //usr/lib/python3/dist-packages/twisted/scripts/__pycache__/_twistd_unix.cpython-38.pyc
U
��W[�? � @ s d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZd dl m
Z
mZmZ d dl
mZmZmZ d dlmZmZmZmZ d dlmZmZ d dlmZ d dlmZmZ d d lmZ ed
kr�e d��dd
� Z!G dd� dej"�Z"dd� Z#G dd� dej$�Z%dd� Z&G dd� dej'�Z(dS )� )�absolute_import�division�print_functionN)�log�logfile�usage)�
intToBytes�
_bytesRepr�_PY3)� switchUID�
uidFromString�
gidFromString�untilConcludes)�app�service)�IReactorDaemonize)� copyright�logger)�platformTypeZwin32z%_twistd_unix doesn't work on Windows.c C s
t | d�S )N� )�int)�value� r �>/usr/lib/python3/dist-packages/twisted/scripts/_twistd_unix.py�_umask s r c
@ s� e Zd ZdZdddgdddgddd gd
ddggZd
dddgddddgddddgddddegddddegddddeggZe j
e �d�e jdd�e j
d d�e jd!d�e jd"d�d#�d$�Zd%d&� Zd'd(� ZdS ))�
ServerOptionszUsage: twistd [options]�nodaemon�nz0don't daemonize, don't use default umask of 0077�originalnameNz$Don't try to change the process name�syslogzLog to syslog, not to file�euid� a Set only effective user-id rather than real user-id. (This option has no effect unless the server is running as root, in which case it means not to shed all privileges after binding ports, retaining the option to regain privileges in cases such as spawning processes. Use with caution.)�prefix�twistedz$use the given prefix when syslogging�pidfilez
twistd.pidzName of the pidfile�chrootz-Chroot to a supplied directory before running�uid�uzThe uid to run as.�gid�gzbThe gid to run as. If not specified, the default gid associated with the specified --uid is used.�umaskz(The (octal) file creation mask to apply.z*.pidzchroot directory)Zdescrz
gid to run asz
uid to run asz
syslog prefix)r$ r% r( r&