How can I run localtunnel-beta automatically @ statup (Debian) ?

104 views
Skip to first unread message

Mariusz

unread,
Mar 24, 2013, 7:33:09 AM3/24/13
to local...@googlegroups.com
How can I run localtunnel-beta automatically @ statup (Debian) ?
I cannot to find any manual in this topic.

Thank you for any feedback.

Mariusz

unread,
Mar 24, 2013, 9:19:36 AM3/24/13
to local...@googlegroups.com
I triet this way (but with no result):

$ touch /etc/init.d/loctun

inside:

#!/bin/sh

### BEGIN INIT INFO
# Provides:          skeleton
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO

/usr/local/bin/localtunnel-beta -n test 80

Then I did:

$ chmod +x /etc/init.d/loctun

Then:

$ update-rc.d loctun defaults 40


All should work now. To be sure I tried to run it manually:

root@raspberrypi:/home/pi# cd ..
root@raspberrypi:/home# cd ..
root@raspberrypi:/# cd etc
root@raspberrypi:/etc# cd init.d
root@raspberrypi:/etc/init.d# ./loctun
  Thanks for trying localtunnel v2 beta!

  Port 80 is now accessible from http://test.v2.localtunnel.com ...


OK. All is working. So I decided to reebot. 

And what I see at boot log?

[code]Sun Mar 24 13:57:16 2013: /etc/init.d/loctun: 14: /etc/init.d/loctun: localtunnel-beta: not found


Why?

Do someone support me?

Jeff Lindsay

unread,
Mar 24, 2013, 1:18:42 PM3/24/13
to local...@googlegroups.com
I'd lookup Debian or Raspberry Pi on how to do this. 


--
You received this message because you are subscribed to the Google Groups "localtunnel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to localtunnel...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jeff Lindsay
http://progrium.com
Reply all
Reply to author
Forward
0 new messages