I need to restart
shiny-server (Upstart service) on Ubuntu 12.04 on a routine schedule.
Typically, if I want to restart this service manually, I simply type:
sudo restart shiny-server or
service shiny-server restart (as
root). As I understand, this is similar to something like
sudo restart mysql.
To schedule the restart, I tried the following entries in my
0 6 * * * restart shiny-server 0 6 * * * service shiny-server restart 0 6 * * * bash /home/local/ANT/raybao/dev/script.sh
Where the last line of
service shiny-server restart.
None of the above actually works!
So I'm pretty stumped/confused. What am I missing? Thanks!!
More info for
shiny-server here: http://rstudio.github.io/shiny-server/latest/#upstart-ubuntu-12.04-through-14.10-redhat-6