2016-07-24 23:54:36 +00:00
|
|
|
/// <reference types="node" />
|
|
|
|
/// <reference types="q" />
|
|
|
|
import * as plugins from "./smartnginx.plugins";
|
|
|
|
import { NginxConfig } from "./smartnginx.classes.nginxconfig";
|
2016-08-02 13:32:06 +00:00
|
|
|
/**
|
|
|
|
* manages a nginxprocess for an NginxConfig
|
|
|
|
*/
|
2016-07-24 23:54:36 +00:00
|
|
|
export declare class NginxProcess {
|
|
|
|
started: boolean;
|
|
|
|
nginxConfig: NginxConfig;
|
|
|
|
nginxChildProcess: plugins.childProcess.ChildProcess;
|
|
|
|
constructor(nginxConfigArg: any);
|
|
|
|
/**
|
|
|
|
* start nginx
|
|
|
|
*/
|
|
|
|
start(): plugins.q.Promise<{}>;
|
|
|
|
/**
|
|
|
|
* reload config
|
|
|
|
*/
|
|
|
|
reloadConfig(): plugins.q.Promise<{}>;
|
|
|
|
/**
|
|
|
|
* stop the nginx instance
|
|
|
|
*/
|
|
|
|
stop(): plugins.q.Promise<{}>;
|
|
|
|
/**
|
|
|
|
* checks if nginx is in path
|
|
|
|
*/
|
|
|
|
check(): boolean;
|
|
|
|
}
|