D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python3.6
/
site-packages
/
cloudinit
/
distros
/
__pycache__
/
Filename :
freebsd.cpython-36.opt-1.pyc
back
Copy
3 \�me� � @ sx d dl Z d dlZd dlZd dlmZ d dlZd dlmZmZ d dl m Z d dlmZ e j e�ZG dd� dejjj�ZdS )� N)�StringIO)�subp�util)�FreeBSDNetworking)�PER_INSTANCEc @ s� e Zd ZdZeZdZdZdZdZ dddgZ d d gZd dgZd dgZ d d gZdZdZed+dd��Zedd�eeed�dd��Zdd� Zdd� Zdd� Zd,dd�Zd d!� Zd-d"d#�Zd$d%� Zd&d'� Zeeeeeeed(�d)d*��ZdS ).�DistrozY Distro subclass for FreeBSD. (N.B. DragonFlyBSD inherits from this class.) z/usr/local/libz/etc/login.confz/etc/login.conf.origz,/usr/local/etc/sudoers.d/90-cloud-init-users�pw�group�addZpkgZinstall�remove�updateZupgradeTz /usr/homeNc C s8 t jjd�}|dkr"tjd� dS tjdd|gd|d�S )z� Tell rc to reload its configuration Note that this only works while we're still in the process of booting. May raise ProcessExecutionError ZRC_PIDNz0Unable to reload rc(8): no RC_PID in Environment�killz-SIGALRMT)�capture�rcs)�os�environ�get�LOGZwarningr )�clsr Zrc_pid� r �/usr/lib/python3.6/freebsd.py�reload_init( s zDistro.reload_init)r )�action�service� extra_argsc G sx | j }|dg|dg|dg|dg|dg|dg|dg|dg|dg|dg|d g|d gd�}||| t|� }tj|d|d �S )a Perform the requested action on a service. This handles FreeBSD's 'service' case. The FreeBSD 'service' is closer in features to 'systemctl' than SysV init's 'service', so we override it. May raise ProcessExecutionError �stop�start�enable�enabled�disable�onestart�onestop�restart�status� onestatus)r r r r r r r! r"