0

I've got shiny installed and running on a RedHat AWS EC2 instance. However, it seems to be forever running, because typing stop shiny-server or start shiny-server results in the error: -bash: restart: command not found. I don't see this when I install shiny on a Ubuntu instance. Is there a way to fix this on RedHat?

Gaurav Bansal
  • 5,221
  • 14
  • 45
  • 91

1 Answers1

3

You're probably using RedHat 7, so you should use systemd:

sudo systemctl start shiny-server
sudo systemctl stop shiny-server
sudo systemctl restart shiny-server
Sergey Kovalev
  • 9,110
  • 2
  • 28
  • 32