1 | <?php |
||
21 | trait loadTasks |
||
22 | { |
||
23 | /** |
||
24 | * Allows to start a service. |
||
25 | * |
||
26 | * @param string $serviceManager Service manager to use. Optional. |
||
27 | * @param string $service Service. Optional. |
||
28 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
29 | * |
||
30 | * @return Start |
||
31 | */ |
||
32 | 6 | protected function taskServiceStart($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
36 | |||
37 | /** |
||
38 | * Allows to stop a service. |
||
39 | * |
||
40 | * @param string $serviceManager Service manager to use. Optional. |
||
41 | * @param string $service Service. Optional. |
||
42 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
43 | * |
||
44 | * @return Stop |
||
45 | */ |
||
46 | 6 | protected function taskServiceStop($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
50 | |||
51 | /** |
||
52 | * Allows to restart a service. |
||
53 | * |
||
54 | * @param string $serviceManager Service manager to use. Optional. |
||
55 | * @param string $service Service. Optional. |
||
56 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
57 | * |
||
58 | * @return Restart |
||
59 | */ |
||
60 | 6 | protected function taskServiceRestart($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
64 | |||
65 | /** |
||
66 | * Allows to reload a service. |
||
67 | * |
||
68 | * @param string $serviceManager Service manager to use. Optional. |
||
69 | * @param string $service Service. Optional. |
||
70 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
71 | * |
||
72 | * @return Reload |
||
73 | */ |
||
74 | 6 | protected function taskServiceReload($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
78 | |||
79 | /** |
||
80 | * Allows to enable a service. |
||
81 | * |
||
82 | * @param string $serviceManager Service manager to use. Optional. |
||
83 | * @param string $service Service. Optional. |
||
84 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
85 | * |
||
86 | * @return Enable |
||
87 | */ |
||
88 | 6 | protected function taskServiceEnable($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
92 | |||
93 | /** |
||
94 | * Allows to disable a service. |
||
95 | * |
||
96 | * @param string $serviceManager Service manager to use. Optional. |
||
97 | * @param string $service Service. Optional. |
||
98 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
99 | * |
||
100 | * @return Disable |
||
101 | */ |
||
102 | 6 | protected function taskServiceDisable($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
106 | |||
107 | /** |
||
108 | * Allows to reload systemd manager configuration. |
||
109 | * |
||
110 | * @param string $serviceManager Service manager to use. Optional. |
||
111 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
112 | * |
||
113 | * @return DaemonReload |
||
114 | */ |
||
115 | 5 | protected function taskServiceDaemonReload($serviceManager = null, CommandBuilderFactoryInterface $factory = null) |
|
119 | } |
||
120 |