1 | <?php |
||
17 | trait loadTasks |
||
18 | { |
||
19 | /** |
||
20 | * Allows to start a service. |
||
21 | * |
||
22 | * @param string $serviceManager Service manager to use. Optional. |
||
23 | * @param string $service Service. Optional. |
||
24 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
25 | * |
||
26 | * @return Start |
||
27 | */ |
||
28 | 6 | protected function taskServiceStart($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
32 | |||
33 | /** |
||
34 | * Allows to stop a service. |
||
35 | * |
||
36 | * @param string $serviceManager Service manager to use. Optional. |
||
37 | * @param string $service Service. Optional. |
||
38 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
39 | * |
||
40 | * @return Stop |
||
41 | */ |
||
42 | 6 | protected function taskServiceStop($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
46 | |||
47 | /** |
||
48 | * Allows to restart a service. |
||
49 | * |
||
50 | * @param string $serviceManager Service manager to use. Optional. |
||
51 | * @param string $service Service. Optional. |
||
52 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
53 | * |
||
54 | * @return Restart |
||
55 | */ |
||
56 | 6 | protected function taskServiceRestart($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
60 | |||
61 | /** |
||
62 | * Allows to enable a service. |
||
63 | * |
||
64 | * @param string $serviceManager Service manager to use. Optional. |
||
65 | * @param string $service Service. Optional. |
||
66 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
67 | * |
||
68 | * @return Enable |
||
69 | */ |
||
70 | 6 | protected function taskServiceEnable($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
74 | |||
75 | /** |
||
76 | * Allows to disable a service. |
||
77 | * |
||
78 | * @param string $serviceManager Service manager to use. Optional. |
||
79 | * @param string $service Service. Optional. |
||
80 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
81 | * |
||
82 | * @return Disable |
||
83 | */ |
||
84 | 6 | protected function taskServiceDisable($serviceManager = null, $service = null, CommandBuilderFactoryInterface $factory = null) |
|
88 | |||
89 | /** |
||
90 | * Allows to reload systemd manager configuration. |
||
91 | * |
||
92 | * @param string $serviceManager Service manager to use. Optional. |
||
93 | * @param CommandBuilderFactoryInterface $factory CommandBuilder factory. Optional. |
||
94 | * |
||
95 | * @return DaemonReload |
||
96 | */ |
||
97 | 5 | protected function taskServiceDaemonReload($serviceManager = null, CommandBuilderFactoryInterface $factory = null) |
|
101 | } |
||
102 |