Add sudo to launchd commands

This commit is contained in:
Gus Luxton
2020-01-25 10:35:18 -04:00
committed by GitHub
parent f97704a6b8
commit 7717b78d98
+5 -5
View File
@@ -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
```