Skip to content

Instantly share code, notes, and snippets.

@Codesleuth
Created September 2, 2016 09:09
Show Gist options
  • Save Codesleuth/d87e980c0f1cfae7ab2aa25c052f8956 to your computer and use it in GitHub Desktop.
Save Codesleuth/d87e980c0f1cfae7ab2aa25c052f8956 to your computer and use it in GitHub Desktop.
declare module 'os-service' {
import { Writable } from 'stream';
interface ServiceOptions {
nodePath?: string;
username?: string;
password?: string;
programPath?: string;
displayName?: string;
nodeArgs?: string[];
programArgs?: string[];
runLevels?: number[];
}
function add(name: string, options: ServiceOptions, cb: (err?: Error) => void): any;
function remove(name: string, cb: (err?: Error) => void): any;
function run(stdoutLogStream: Writable, stderrLogStream: Writable, stopCallback: Function): void;
function run(stderrLogStream: Writable, stopCallback: Function): void;
function stop(rcode: number): void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment