slartibartfast wrote: 
> I am trying to run ngrok at start up on a raspberry Pi. Adding
> 
> /home/pi/ngrok http -inspect=false -auth "username:password" 9000 >
> /dev/null 2>&1 &
> 
> to rc.local doesn't work. 
> Running "ngrok http -inspect=false -auth "username:password" 9000 >
> /dev/null 2>&1 &" in a terminal works correctly. I am sure I am making a
> simple mistake but have no idea what it is. Any ideas?

Try creating a systemd service file, e.g. ngrok.service:

Code:
--------------------
    
  [Unit]
  Description=Blah
  After=multi-user.target
  
  [Service]
  Type=simple
  ExecStart=ngrok http -inspect=false -auth "username:password" 9000
  Restart=on-failure
  
  [Install]
  WantedBy=multi-user.target
  
  
--------------------


Copy to /etc/systemd/system, then run:


Code:
--------------------
    
  sudo systemctl daemon-reload
  sudo systemctl enable ngrok
  sudo systemctl start ngrok
  
--------------------


------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to