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.
Written by Marc Qualie
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Function
Authors
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/6486/chip-avatar.jpg)
Chip Castle
21.48K
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/23302/04b056e843c7f0e4c7e97e36174e43b4.jpeg)
deleteman
10.07K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#