LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2009, 08:22 PM   #16
boxb29
LQ Newbie
 
Registered: Aug 2009
Posts: 21

Original Poster
Rep: Reputation: 15

I got it working finally. Took a slightly different route:

1. created a script /etc/init.d/hamtun
Code:
#!/bin/bash

# script to load tuncfg then hamachi at boot

sudo /usr/src/tuncfg/tuncfg
sudo /usr/src/hamachi/hamachi start
2.
Code:
chmod +x /etc/init.d/hamtun
3. execute this command to link the script to boot

Code:
update-rc.d hamtun defaults
4. reboot...and it works.

One note: tuncfg was loading all along, but not in the right order. If I remove the "tuncfg" line from this script and JUST load "hamachi start", it does not work because hamachi is being loaded before tuncfg. So, I suspect when I am loading tuncfg in this script it is getting loaded again elsewhere at boot - but that doesn't hurt anything.

Thanks all for the help!
 
Old 08-23-2009, 08:28 PM   #17
boxb29
LQ Newbie
 
Registered: Aug 2009
Posts: 21

Original Poster
Rep: Reputation: 15
I got it working finally. Took a slightly different route:

1. created a script /etc/init.d/hamtun
Code:

Code:
#!/bin/bash

# script to load tuncfg then hamachi at boot

sudo /usr/src/tuncfg/tuncfg
sudo /usr/src/hamachi/hamachi start
2.
Code:

Code:
chmod +x /etc/init.d/hamtun
3. execute this command to link the script to boot

Code:

Code:
update-rc.d hamtun defaults
4. reboot...and it works.

One note: tuncfg was loading all along, but not in the right order. If I remove the "tuncfg" line from this script and JUST load "hamachi start", it does not work because hamachi is being loaded before tuncfg. So, I suspect when I am loading tuncfg in this script it is getting loaded again elsewhere at boot - but that doesn't hurt anything.

Thanks all for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rc.local doesn't run in Hardy rignes Ubuntu 3 05-07-2008 08:48 PM
clamd upgradation in remote mach through local mac by script to be run on local mach Narayandutt Programming 3 11-29-2006 10:00 AM
always have to re-run rc.local calcon Slackware 4 04-02-2005 10:32 AM
fedora c2; rc.local didn't run??? GrumpyGnome Linux - Newbie 2 07-03-2004 08:44 PM
rc.local not being run gw1500se Mandriva 6 05-31-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration