The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: dns2go boot script
Author: Robert 
Date:   08-05-03 23:22

I'm lame! Here's a much better script for all you dns2go users.

#!/bin/sh
#Just a very lightweight but effective script to start dns2go #and apache at boot.

echo -n "Starting apache and dns2go services..."

/usr/local/bin/dns2go &
/usr/local/apache/bin/apachectl start

exit 0



How simple is that? Forgive me for being a newbie.
Steps:
1]#ee /usr/local/etc/rc.d/script.sh
2]insert the script above into the file and exit/save
3]#chmod u+x script.sh
4]reboot and the script should run! *crossed-fingers*

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 dns2go boot script   new
apache916 04-05-03 05:46 
 Re: dns2go boot script   new
Robert 08-05-03 23:22 
 Re: dns2go boot script   new
Robert 13-05-03 06:55 
 Re: dns2go boot script   new
wtp 03-12-03 11:53 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org