Results 1 to 2 of 2
Thread: Apache startup script
Enjoy an ad free experience by logging in. Not a member yet? Register.
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!!!
- 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.