mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-28 03:19:47 +08:00
Add sudo to launchd commands
This commit is contained in:
@@ -5,8 +5,8 @@ Sample configuration of launchd for Teleport.
|
||||
## Install
|
||||
|
||||
```
|
||||
cp teleport.plist /Library/LaunchDaemons/
|
||||
launchctl load /Library/LaunchDaemons/teleport.plist
|
||||
sudo cp teleport.plist /Library/LaunchDaemons/
|
||||
sudo launchctl load /Library/LaunchDaemons/teleport.plist
|
||||
```
|
||||
|
||||
## Status
|
||||
@@ -18,12 +18,12 @@ launchctl list | grep -i teleport
|
||||
## Logs
|
||||
|
||||
```
|
||||
tail -f /var/log/teleport-stderr.log
|
||||
sudo tail -f /var/log/teleport-stderr.log
|
||||
```
|
||||
|
||||
## Restart
|
||||
|
||||
```
|
||||
launchctl unload /Library/LaunchDaemons/teleport.plist && \
|
||||
launchctl load /Library/LaunchDaemons/teleport.plist
|
||||
sudo launchctl unload /Library/LaunchDaemons/teleport.plist && \
|
||||
sudo launchctl load /Library/LaunchDaemons/teleport.plist
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user