Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I have a raspberry pi which I want to turn into a web server. I have installed everything needed. The problem is I am using ngrok to get the server online. To do this, all I have to do is run the following command in the terminal:

/home/pi/Downloads/ngrok http -subdomain=asimpledomain 80

As I want this command to be executed on startup, 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 file and rebooted, but after boot up, I found out that it is not working.

Any ideas?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.