I have a raspberry pi which I want to turn into a web server. I have installed everything needed. Now my problem: I am using
ngrok to get the server online. To do this all I have to do is running the following command in the terminal:
/home/pi/Downloads/ngrok http -subdomain=asimpledomain 80
Now I want this command to be executed on startup so I changed my rc.local file to this:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /home/pi/Downloads/ngrok http -subdomain=asimpledomain 80 & exit 0
I have saved the files and rebooted but after booting up I found out that this is not working. Any ideas?