관리-도구
편집 파일: plugin_service.cpython-36.opt-1.pyc
3 �<�e�) � @ s� d dl mZ ddlZddljZd dlT ddlZddlZddlZ ddl mZ e jj � Ze� ZG dd� d�ZG dd � d �ZG d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� dej�ZdS )� )�base� N)�*)�commandsc @ s e Zd Zddd�ZdS )�ServiceNc C s || _ || _|| _|| _d S )N)�enable�start�cfg_file�runlevel)�selfr r r r � r �$/usr/lib/python3.6/plugin_service.py�__init__ s zService.__init__)NNNN)�__name__� __module__�__qualname__r r r r r r s r c @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )�InitHandlerc C s( t jdg�\}}|dkr$|j� d S d S )Nr r r ���)�cmd�execute�split)r �retcode�outr r r �runlevel_get s zInitHandler.runlevel_getc C s t jddg� d S )NZtelinit�q)r r )r r r r � daemon_reload s zInitHandler.daemon_reloadc C s d S )Nr )r �namer r r r �cfg_install s zInitHandler.cfg_installc C s d S )Nr )r r r r r r � cfg_uninstall s zInitHandler.cfg_uninstallc C s d S )Nr )r r r r r r � cfg_verify"