From time to time it becomes necessary to restart cairo-dock process on my lxde desktop (lubuntu 16.04). Here is how I created a shell script driven desktop shortcut to accomplish that.
$ cat restartDock.sh
killall cairo-dock 2> /tmp/tim1
killall cairo-dock-launcher-API-daemon 2> /tmp/tim2
gksu -u tim -S "bash -c 'cairo-dock -c 2>&1 | tee /tmp/cairodoc.log '" &