| @@ 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 stopped'); |
|
| 64 | } |
|
| 65 | ||
| 66 | $this->service = $service; |
|
| 67 | $this->action = 'stop'; |
|
| 68 | ||
| 69 | return $this; |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * {@inheritdoc} |
|
| @@ 120-130 (lines=11) @@ | ||
| 117 | /** |
|
| 118 | * {@inheritdoc} |
|
| 119 | */ |
|
| 120 | public function disable($service) |
|
| 121 | { |
|
| 122 | if (empty($service)) { |
|
| 123 | throw new \InvalidArgumentException('No service selected to be disabled'); |
|
| 124 | } |
|
| 125 | ||
| 126 | $this->service = $service; |
|
| 127 | $this->action = 'disable'; |
|
| 128 | ||
| 129 | return $this; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * {@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 stopped'); |
|
| 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} |
|
| @@ 107-118 (lines=12) @@ | ||
| 104 | /** |
|
| 105 | * {@inheritdoc} |
|
| 106 | */ |
|
| 107 | public function reload($service) |
|
| 108 | { |
|
| 109 | if (empty($service)) { |
|
| 110 | throw new \InvalidArgumentException('No service selected to be reloaded'); |
|
| 111 | } |
|
| 112 | ||
| 113 | $this->cmd = '/etc/init.d'; |
|
| 114 | $this->service = $service; |
|
| 115 | $this->action = 'reload'; |
|
| 116 | ||
| 117 | return $this; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * {@inheritdoc} |
|