Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 114fca23bd
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (17 sloc) 0.45 kb
#!/usr/bin/env python
import fabric.network
import logging
import sys
from profab.server import Server
def main(client, hostname):
logging.basicConfig(level=logging.INFO)
server = Server.connect(client, hostname)
if server:
server.restart()
else:
logging.error("Could not find a server instance")
if __name__=="__main__":
try:
main(*sys.argv[1:])
finally:
fabric.network.disconnect_all()
Jump to Line
Something went wrong with that request. Please try again.