Changeset 52c3f68 in mod_gnutls for test/proxy_backend.bash


Ignore:
Timestamp:
May 16, 2015, 6:26:44 AM (5 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
7813802
Parents:
03295a9
Message:

Detect apache(2?)ctl and use it instead of starting Apache directly

This should help with portability across distributions that install the
Apache binary under different paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/proxy_backend.bash

    r03295a9 r52c3f68  
    1414: ${BACKEND_LOCK:="backend.lock"}
    1515: ${srcdir:="."}
     16: ${APACHECTL:="apachectl"}
    1617
    1718function backend_apache
     
    3536            start)
    3637                ${flock_cmd} \
    37                     /usr/sbin/apache2 -f "$(realpath ${testdir}/${conf})" -k start || return 1
     38                    ${APACHECTL} -f "$(realpath ${testdir}/${conf})" -k start || return 1
    3839                ;;
    3940            stop)
    40                 /usr/sbin/apache2 -f "$(realpath ${testdir}/${conf})" -k stop || return 1
     41                ${APACHECTL} -f "$(realpath ${testdir}/${conf})" -k stop || return 1
    4142                ;;
    4243        esac
Note: See TracChangeset for help on using the changeset viewer.