Skip to content

Commit ac2bb45

Browse files
author
Andreas Frömer
committed
Adjust README after sudo drop
1 parent ec262b8 commit ac2bb45

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ SystemCtl::setBinary('/bin/systemctl');
2626
```
2727

2828
## "I need sudo to run commands"
29-
Don't worry. Simply set sudo flag to `true`.
30-
31-
```php
32-
SystemCtl::sudo(true);
33-
```
29+
If you need sudo, you should execute the bin executable with sudo.
30+
The incode support was dropped due to security reason.
3431

3532
## How do I start/stop/restart a unit?
3633
Simply is that. First we instantiate a `SystemCtl` instance an load a unit from a specific type. Here we use a `Service`. You will always get back `true` if the command succeeded. Otherwise the method will throw a `CommandFailedException`.

0 commit comments

Comments
 (0)