Avatar

Nino

ruby on rails engineer
Messages stuck offline on OS X
27 Mar 2015

Semi-automate service restart

Quite often it happens that OS X Messages get stuck in offline mode and despite the issue being reported Apple is still not doing anything about it. Luckily I've stumbled upon a blog post by Scott Wilcox where he found a way to restart the service.

I've tried further automating this and my best solution so far is to make an alias.

Append the following line to your ~/.bashrc file

alias restart_imagent="kill -9 $(ps aux | grep 'imagent.app' | grep -v grep | awk '{print $2}')"

Next time your OS X Messages application gets stuck in offline mode you can open your terminal and type restart_imagent. This will allow you to change status to online.


comments