예제 #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $list = Daemonize::listServices();
     $output->writeln("");
     if (count($list) == 0) {
         $output->writeln("There is no daemonize services installed.");
     } else {
         $output->writeln("List of daemonize services: ");
         foreach ($list as $filename) {
             $output->writeln(" - " . basename($filename));
         }
     }
     $output->writeln("");
 }
예제 #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     Daemonize::install($input->getArgument('servicename'), $input->getArgument('classname'), $input->getArgument('bootstrap'), $input->getArgument('rootdir'), __DIR__ . "/../../template/linux-initd-service.conf", $input->getArgument('description'), $input->getArgument('args'));
 }
예제 #3
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $serviceName = $input->getArgument('servicename');
     shell_exec("service {$serviceName} stop");
     Daemonize::uninstall($serviceName);
 }