Results 1 to 2 of 2
I have apache on a freebsd box but it does not start up at boot. I have created a script that does not work. Probably because I dunno anything about ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-15-2003 #1
Apache startup script
I have created a script that does not work. Probably because I dunno anything about scripting
if [-x /usr/local/apache/bin/apachectl start]; then
/usr/local/apache/bin/apachectl start &
What does -x stand for?
CheersI am on a journey to mastering Linux and I got a bloody long way to go!!!
- 08-15-2003 #2
- Join Date
- Oct 2001
- Täby, Sweden
That's right, that won't work. Use this instead:
if [ -x /usr/local/apache/bin/apachectl ]; then
-x tests so that the file is executable. Run "help test" in bash for more info.