There is a question on how to start, Teamviewer from commandline, to make outward connections, however I want to start the Teamviewer from commandline (So it can accept incoming
Some procceses are not correctly restarted after restart the daemon, in ubuntu 14.04 I kill the proccesses before restarting teamviewer:
Try something like:
sudo ps -afuwwwwwwx | grep -i "teamviewer" | sed -r "s/^([^\ ]+[\ ]+([0-9]+).+)$/\2/g" | xargs -i sudo kill {}
sudo teamviewer --daemon restart