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?
Asked
Active
Viewed 392 times
0

Gaurav Bansal
- 5,221
- 14
- 45
- 91
1 Answers
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
-
Useful answer. there should be more up vote for that! – Yoann Pageaud Sep 30 '19 at 10:06