我需要按shiny-server例行计划在 Ubuntu 12.04 上重新启动(Upstart 服务)。
通常,如果我想手动重新启动此服务,只需键入:sudo restart shiny-server或service shiny-server restart(作为root)。据我了解,这类似于sudo restart mysql.
为了安排重新启动,我在我的root用户中尝试了以下条目crontab:
0 6 * * * restart shiny-server
0 6 * * * service shiny-server restart
0 6 * * * bash /home/local/ANT/raybao/dev/script.sh
Run Code Online (Sandbox Code Playgroud)
当最后一行script.sh是service shiny-server restart。
以上都没有实际工作!
所以我很困惑/困惑。我错过了什么?谢谢!!
更多信息shiny-server:http : //rstudio.github.io/shiny-server/latest/#upstart-ubuntu-12.04-through-14.10-redhat-6