# Path: pgctl/debug.py
# def trace(msg, *args):
#     debug(msg, *args, level=3)
# 
# Path: pgctl/errors.py
# class Unsupervised(Exception):
#     """The pgctl supervision process has gone missing."""
# 
# Path: pgctl/subprocess.py
# def set_defaults(func, **defaults):
#     def wrapped(cmd, **kwargs):
# PIPE = subprocess.PIPE
# STDOUT = subprocess.STDOUT
# 
# Path: pgctl/subprocess.py
# PIPE = subprocess.PIPE
# 
# Path: pgctl/subprocess.py
# def set_defaults(func, **defaults):
#     def wrapped(cmd, **kwargs):
# PIPE = subprocess.PIPE
# STDOUT = subprocess.STDOUT
# 
# Path: pgctl/subprocess.py
# STDOUT = subprocess.STDOUT


from collections import namedtuple
from .debug import trace
from .errors import Unsupervised
from .subprocess import CalledProcessError
from .subprocess import PIPE
from .subprocess import Popen
from .subprocess import STDOUT
        import sys



def svc(args):
    """Wrapper for daemontools svc cmd"""
    # svc never writes to stdout.
    cmd = ('s6-svc',) + tuple(args)
    trace('CMD: %s', cmd)

# Path: pgctl/debug.py
# def trace(msg, *args):
#     debug(msg, *args, level=3)
# 
# Path: pgctl/errors.py
# class Unsupervised(Exception):
#     """The pgctl supervision process has gone missing."""
# 
# Path: pgctl/subprocess.py
# def set_defaults(func, **defaults):
#     def wrapped(cmd, **kwargs):
# PIPE = subprocess.PIPE
# STDOUT = subprocess.STDOUT
# 
# Path: pgctl/subprocess.py
# PIPE = subprocess.PIPE
# 
# Path: pgctl/subprocess.py
# def set_defaults(func, **defaults):
#     def wrapped(cmd, **kwargs):
# PIPE = subprocess.PIPE
# STDOUT = subprocess.STDOUT
# 
# Path: pgctl/subprocess.py
# STDOUT = subprocess.STDOUT


# Path: pgctl/daemontools.py
from collections import namedtuple
from .debug import trace
from .errors import Unsupervised
from .subprocess import CalledProcessError
from .subprocess import PIPE
from .subprocess import Popen
from .subprocess import STDOUT
        import sys




def svc(args):
    """Wrapper for daemontools svc cmd"""
    # svc never writes to stdout.
    cmd = ('s6-svc',) + tuple(args)
    trace('CMD: %s', cmd)

    process = Popen(cmd, stderr=PIPE)