| @@ 60-70 (lines=11) @@ | ||
| 57 | /** |
|
| 58 | * {@inheritdoc} |
|
| 59 | */ |
|
| 60 | public function stop($service) |
|
| 61 | { |
|
| 62 | if (empty($service)) { |
|
| 63 | throw new \InvalidArgumentException('No service selected to be started'); |
|
| 64 | } |
|
| 65 | ||
| 66 | $this->service = $service; |
|
| 67 | $this->action = 'stop'; |
|
| 68 | ||
| 69 | return $this; |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * {@inheritdoc} |
|
| @@ 105-115 (lines=11) @@ | ||
| 102 | /** |
|
| 103 | * {@inheritdoc} |
|
| 104 | */ |
|
| 105 | public function disable($service) |
|
| 106 | { |
|
| 107 | if (empty($service)) { |
|
| 108 | throw new \InvalidArgumentException('No service selected to be disabled'); |
|
| 109 | } |
|
| 110 | ||
| 111 | $this->service = $service; |
|
| 112 | $this->action = 'disable'; |
|
| 113 | ||
| 114 | return $this; |
|
| 115 | } |
|
| 116 | ||
| 117 | /** |
|
| 118 | * {@inheritdoc} |
|
| @@ 75-86 (lines=12) @@ | ||
| 72 | /** |
|
| 73 | * {@inheritdoc} |
|
| 74 | */ |
|
| 75 | public function stop($service) |
|
| 76 | { |
|
| 77 | if (empty($service)) { |
|
| 78 | throw new \InvalidArgumentException('No service selected to be started'); |
|
| 79 | } |
|
| 80 | ||
| 81 | $this->cmd = '/etc/init.d'; |
|
| 82 | $this->service = $service; |
|
| 83 | $this->action = 'stop'; |
|
| 84 | ||
| 85 | return $this; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * {@inheritdoc} |
|