1 | <?php namespace Indatus\Dispatcher\Services; |
||
14 | class BackgroundProcessService |
||
15 | { |
||
16 | /** |
||
17 | * Determine if the background process can run as another user |
||
18 | * @return bool |
||
19 | */ |
||
20 | 2 | public function canRunAsUser() |
|
26 | |||
27 | /** |
||
28 | * Is the current command being run as root? |
||
29 | * @return bool |
||
30 | */ |
||
31 | 1 | public function isRoot() |
|
35 | } |
||
36 |