"man rc.local" for details on how to do it by hand.
I think the port will only create a file apache.sh.sample. You will need to copyQuote:> Put a script in '/usr/local/etc/rc.d'.
> The Apache port does this for you automatically, I think.
> "man rc.local" for details on how to do it by hand.
Simon
Any executable .sh file located in /usr/local/etc/rc.d/ will be run onQuote:> I am quite new to FreeBSD, I have 4.5 installed text mode only on a 486 :)
> and I also installed apache 2.0.43 everything runs good, question though,
> how do i make it so everytime i reboot my computer, apache will start
> automatically?
/usr/local/etc/rc.d/rclocal.sh
with contents like (for example)
#!/bin/sh
/path/to/apachectl $1
The '$1' will take the 'start' argument and apply it, or you could just say
it explicitly and discard the argument.
#!/bin/sh
/path/to/apachectl start
Remember to chmod your startup script executable. -=r=-
> > "man rc.local" for details on how to do it by hand.
> I think the port will only create a file apache.sh.sample. You will need to copy
> it the apache.sh and make it executable. This has the advantage, that the port
> will only overwrite the .sample file when you update apache, and not the script
> that might have been carefully adapted by you.
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh; \
fi
> The port's makefile seems to disagree.
> Have I missed something?
> ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file."; \
> ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh; \
> fi
My postings points out the policy that ports should follow when they install
configuration files and the like. At least, the Apache 2 port will check
whether there is already a startup file.
Simon
1. Newbie (I mean REAL NEWBIE) question
Sorry, I'm not a pc idiot, just completely new to linux. I lurked here
for a day or two and didn't see the answer.
Can I run Windows95 in a Linux RedHat 5.2 shell? This would let me play
Linux but still use my favorite apps. I've set it up to dual boot, but I
want to actually run one or two Win95 sessions in Linux itself.
Someone told me it was possible, but in the 4 days of having RedHat on
my system I can't figure it out...
Sorry for the dumb question.
Nick
--
Nick Smeltzer CNE
2. EGA on linux
3. linux newbie--newbie question follows
4. Sparcstation 10 Video query
5. Newbie question - mailing list, or web site dealing with newbies security in linux?
6. Command to get linux version
7. NEWBIE.. Extremely Newbie questions.
9. Newbie Questions (ICEWM Background, ppp question, mem > 64mb)
10. sar Question (probably a newbie question)
11. Netscape configuration question; newbie question.
12. Kernel compile question. (another newbie question)
13. Newbie Question - Supported Hardware Question.