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 ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Starting stuff at boot time
Author: Octav 
Date:   17-08-05 17:05

I want to start some scripts at boot. I tried putting the files in /usr/local/etc/rc.d and nameing them with sh at the end. Afterwards i tried putting at the begining of the file #!/bin/sh and !/bin/sh and it also did not worked. What should I do? What am I missing?

Reply To This Message
 
 Re: Starting stuff at boot time
Author: Dan 
Date:   19-08-05 22:34

#!/bin/sh is what you need.

The file must also be chmod +x

--
Webmaster

Reply To This Message
 
 Re: Starting stuff at boot time
Author: Waheed 
Date:   01-11-05 08:09

my dear

write ur script in followin files

/etc/rc.local
or
/etc/rc.conf



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


 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