2007-07-29 09:15:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
HTTPD=/usr/sbin/httpd
|
|
|
|
|
2007-08-17 15:02:52 +02:00
|
|
|
echo -n "Starting httpd: "
|
2007-07-29 09:15:35 +02:00
|
|
|
if [ ! -x "${HTTPD}" ]; then
|
2007-08-17 15:02:52 +02:00
|
|
|
echo "missing"
|
2007-07-29 09:15:35 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2007-08-17 15:02:52 +02:00
|
|
|
if ${HTTPD} -h /www; then
|
|
|
|
echo "done"
|
2007-07-29 09:15:35 +02:00
|
|
|
else
|
2007-08-17 15:02:52 +02:00
|
|
|
echo "failed"
|
2007-07-29 09:15:35 +02:00
|
|
|
exit 1
|
|
|
|
fi
|