This launch agent will automatically start a glances web server
- Install Homebrew.
- Install
glances
. Executebrew install glances
. - Copy the
.plist
file in this gist into~/Library/LaunchAgents/
. - EDIT the
.plist
: change/Users/boneskull/
to/Users/<you>/
- Execute
launchctl load ~/Library/LaunchAgents/com.boneskull.glances-web.plist
. Do not run this command with superuser privileges.
- You can also just install
glances
viapip3
if you have it. - This may be better installed as a global daemon instead of a user agent.
For some reason I can't get this to work... I installed glances using pip3, and with the array strings, the directory I'm not sure is valid anymore, or at least with pip3...
It runs the plist file because it creates the log files, but it's not running the glances web server. When I run "glances -w" in terminal it works as it should...