Last Updated: February 25, 2016
·
369
· MarcQualie

OS X Restart Service Shortcut

This is a small bash snippet I created to keep the syntax uniform between OS X and Ubuntu when restarting services.

function service {
    supervisorctl $2 $1
}

This simply reverse the arguments and passes them to supervisorctl. Helps with muscle memory when you're used to restarting services under Ubuntu.