I have written a chrome extension that performs a task whenever it is available, and for that I would need the chrome browser open at all times. My idea was to have a check say every minute if the google process is running if not start chrome. I have added the following in my users crontab (I'm running Ubuntu 14.04)
* * * * * export DISPLAY=:0 && if ! ps aux | grep -q "[c]hrome"; then google-chrome; fi
However nothing seems to run, did i miss out on anything?