Exemple #1
0
 def start_command(self):
     if not os.path.isfile(self.config_path):
         raise exceptions.DaemonNotConfiguredError(self.name)
     return 'sc start {0}'.format(self.name)
Exemple #2
0
 def start_command(self):
     if not os.path.isfile(self.script_path):
         raise exceptions.DaemonNotConfiguredError(self.name)
     return start_command(self)
Exemple #3
0
 def start_command(self):
     if not os.path.isfile(self.config_path):
         raise exceptions.DaemonNotConfiguredError(self.name)
     return [
         'powershell.exe', '& Start-Service -Name {0}'.format(self.name)
     ]