

def restart(self):
    "\n        Forcefully restarts Varnish in the remote server.\n\n        Example:\n        ::\n\n            from provy.core import Role\n            from provy.more.debian import VarnishRole\n\n            class MySampleRole(Role):\n                def provision(self):\n                    with self.using(VarnishRole) as role:\n                        if not self.is_process_running('varnishd'):\n                            role.restart()\n        "
    command = 'START=yes /etc/init.d/varnish restart'
    self.execute(command, sudo=True)

dataset/ETHPy150Open python-provy/provy/provy/more/debian/cache/varnish.py VarnishRole.restart/original