$ 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!
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?