Skip to content

edhere/osx-launch-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

installation

git clone [email protected]:advectus/osx-launch-agents.git ~/osx-launch-agents

cd ~/osx-launch-agents && bundle install

add agent

./bin/osxyz add_agent ~/bootstrap.sh

remove agent

./bin/osxyz remove_agent "com.advectus.zhmsorlhx50bxx8t5f9wt5utmsdz7xg.plist"

list agents

./bin/osxyz list_agents

LaunchAgent locations on file system

~/Library/LaunchAgents Per-user agents provided by the user. /Library/LaunchAgents Per-user agents provided by the administrator. /Library/LaunchDaemons System-wide daemons provided by the administrator. /System/Library/LaunchAgents Per-user agents provided by Apple. /System/Library/LaunchDaemons

LaunchAgent

launchctl list
launchctl remove com.spotify.webhelper
launchctl remove com.evernote.EvernoteHelper

LaunchDaemons

cd  /Library/LaunchDaemons
sudo launchctl list | grep ^[0-9]
sudo launchctl bslist | grep ^A
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

Diagnostics

check information on kernel usage

sudo zprint -t
sudo zprint -t -s | head -n20

report on syscalls

sudo syscallbypid.d
sudo syscallbysysc.d

new processes as they are executed

sudo newproc.d

new files

sudo creatbyproc.d

free inactive memory: force completion of pending disk writes, force disk cache to be purged

sync && sudo purge

apple diagnose

sysdiagnose

reset SMC

http://support.apple.com/en-us/HT201295

reset computers PRAM

http://support.apple.com/kb/PH18761

About

Create and manage OSX launch agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages