View | Details | Raw Unified | Return to bug 17262
Collapse All | Expand All

(-)a/debian/scripts/koha-functions.sh (+26 lines)
Lines 43-48 get_apache_config_for() Link Here
43
    fi
43
    fi
44
}
44
}
45
45
46
get_memcached_servers_for()
47
{
48
    local instance=$1
49
50
    local apache_file=$(get_apache_config_for $instance)
51
    local memcached_servers=$(
52
        grep 'MEMCACHED_SERVERS' ${apache_file} |
53
        awk '{print $3}' | uniq
54
    )
55
56
    echo "${memcached_servers}"
57
}
58
59
get_memcached_namespace_for()
60
{
61
    local instance=$1
62
63
    local apache_file=$(get_apache_config_for $instance)
64
    local memcached_namespace=$(
65
        grep 'MEMCACHED_NAMESPACE' ${apache_file} |
66
        awk '{print $3}' | uniq
67
    )
68
69
    echo "${memcached_namespace}"
70
}
71
46
get_opacdomain_for()
72
get_opacdomain_for()
47
{
73
{
48
    local site=$1
74
    local site=$1
(-)a/debian/scripts/koha-plack (-1 / +2 lines)
Lines 84-89 start_plack() Link Here
84
84
85
    if ! is_plack_running ${instancename}; then
85
    if ! is_plack_running ${instancename}; then
86
        export KOHA_CONF="/etc/koha/sites/${instancename}/koha-conf.xml"
86
        export KOHA_CONF="/etc/koha/sites/${instancename}/koha-conf.xml"
87
        export MEMCACHED_SERVERS=$(get_memcached_servers_for $instancename)
88
        export MEMCACHED_NAMESPACE=$(get_memcached_namespace_for $instancename)
87
89
88
        log_daemon_msg "Starting Plack daemon for ${instancename}"
90
        log_daemon_msg "Starting Plack daemon for ${instancename}"
89
91
90
- 

Return to bug 17262