No shiny-server in path

shiny
shiny-server

#1

I'm trying to get shiny-server running on a website with a CentOS 6.9 VPS with root. shiny-server was running, but I must have changed something and now I get:

# sudo start shiny-server
start: Unknown job: shiny-server
# which shiny-server
/usr/bin/which: no shiny-server in (... /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ...)

/var/log/shiny-server has tracked issues before, but isn't tracking now that server isn't running.

I have:
/etc/shiny-server/shiny-server.conf
/etc/init.d/shiny-server.conf
/srv/shiny-server with index.html sample-apps

I've tried various things, but now have a mess of other files scattered around. Before I make it worse, I'm hoping for some guidance. I also want to learn how the shiny-server architecture works, for knowledge sake.
Here are my various "shiny-server" files. Let me know if I can copy/paste the contents of any of them:

find . -name "shiny-server"
./opt/shiny-server
./opt/shiny-server/bin/shiny-server
./opt/shiny-server/ext/node/bin/shiny-server
./opt/shiny-server/config/init.d/debian/shiny-server
./opt/shiny-server/config/init.d/suse/shiny-server
./opt/shiny-server/config/init.d/redhat/shiny-server
./etc/logrotate.d/shiny-server
./etc/shiny-server
./var/log/shiny-server
./var/lib/shiny-server
./var/shiny-server
./srv/shiny-server
./root/.npm/registry.npmjs.org/shiny-server
./usr/local/bin/shiny-server

#2

It looks like you might be missing the file /etc/init/shiny-server.conf, the upstart configuration behind the start command.

Have you tried re-installing shiny-server?

Alternatively you could try creating the missing file manually, with a command like sudo wget -O /etc/init/shiny-server.conf https://raw.githubusercontent.com/rstudio/shiny-server/master/config/upstart/shiny-server.conf and then running sudo start shiny-server